Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|capacitor2a.v|capacitor2b.v|directCapacitor1.capacitor.v|directInductor3.inductor.i|inductor4a.i|inductor4b.i",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs") translateModel(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|capacitor2a.v|capacitor2b.v|directCapacitor1.capacitor.v|directInductor3.inductor.i|inductor4a.i|inductor4b.i",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.004858/0.004858, allocations: 185.3 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.408/3.408, allocations: 205.4 MB / 222.5 MB, free: 9.109 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.002457/0.002457, allocations: 97.48 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001681/0.001681, allocations: 11.98 kB / 327 MB, free: 212 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5378/0.5396, allocations: 47.57 MB / 374.5 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.01149/0.5512, allocations: 4.905 MB / 379.4 MB, free: 41.6 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006846/0.5581, allocations: 1.659 MB / 381.1 MB, free: 40.24 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002038/0.5602, allocations: 29.84 kB / 381.1 MB, free: 40.23 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001016/0.5613, allocations: 123.2 kB / 381.2 MB, free: 40.12 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002363/0.5637, allocations: 267.6 kB / 381.5 MB, free: 39.89 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002442/0.5662, allocations: 327.3 kB / 381.8 MB, free: 39.63 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003987/0.5703, allocations: 0.8939 MB / 382.7 MB, free: 39.04 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001887/0.5722, allocations: 456.9 kB / 383.2 MB, free: 38.77 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001447/0.5737, allocations: 351.7 kB / 383.5 MB, free: 38.57 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001253/0.5751, allocations: 395.7 kB / 383.9 MB, free: 38.29 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004199/0.5755, allocations: 49.81 kB / 383.9 MB, free: 38.29 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006066/0.5762, allocations: 66.33 kB / 384 MB, free: 38.28 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002913/0.5765, allocations: 174.7 kB / 384.2 MB, free: 38.14 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005889/0.5771, allocations: 239 kB / 384.4 MB, free: 37.99 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003137/0.5803, allocations: 1.16 MB / 385.6 MB, free: 37.07 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.663e-06/0.5804, allocations: 0 / 385.6 MB, free: 37.07 MB / 298.7 MB Notification: Performance of FrontEnd: time 4.599e-06/0.5804, allocations: 0 / 385.6 MB, free: 37.07 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001091/0.5805, allocations: 0 / 385.6 MB, free: 37.07 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 306 * Number of variables: 306 Notification: Performance of Generate backend data structure: time 0.005996/0.5865, allocations: 1.24 MB / 386.8 MB, free: 36.1 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.336e-05/0.5866, allocations: 13.42 kB / 386.8 MB, free: 36.1 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008065/0.5875, allocations: 143.3 kB / 387 MB, free: 36.02 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003045/0.5906, allocations: 0.6854 MB / 387.6 MB, free: 35.45 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002041/0.5908, allocations: 95.77 kB / 387.7 MB, free: 35.4 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005127/0.5914, allocations: 116.7 kB / 387.8 MB, free: 35.36 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005145/0.5965, allocations: 1.26 MB / 389.1 MB, free: 33.95 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.926e-05/0.5967, allocations: 7.938 kB / 389.1 MB, free: 33.94 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002174/0.5969, allocations: 52 kB / 389.2 MB, free: 33.89 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.165e-05/0.597, allocations: 32 kB / 389.2 MB, free: 33.86 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004745/0.6018, allocations: 0.6929 MB / 389.9 MB, free: 33.16 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01346/0.6153, allocations: 6.821 MB / 396.7 MB, free: 26 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001541/0.6169, allocations: 273.2 kB / 397 MB, free: 25.72 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002225/0.6172, allocations: 85.11 kB / 397.1 MB, free: 25.62 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.447e-05/0.6173, allocations: 34.56 kB / 397.1 MB, free: 25.57 MB / 298.7 MB Notification: Performance of pre-optimization done (n=27): time 5.32e-06/0.6173, allocations: 0 / 397.1 MB, free: 25.57 MB / 298.7 MB Notification: Performance of matching and sorting (n=29): time 0.005733/0.6231, allocations: 1.422 MB / 398.5 MB, free: 24.05 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.888e-05/0.6232, allocations: 81.11 kB / 398.6 MB, free: 23.95 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001562/0.6248, allocations: 0.649 MB / 399.2 MB, free: 23.29 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.386e-05/0.6249, allocations: 33.7 kB / 399.3 MB, free: 23.25 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006872/0.6256, allocations: 0.7096 MB / 400 MB, free: 22.54 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002196/0.6259, allocations: 122.3 kB / 400.1 MB, free: 22.41 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.619e-05/0.626, allocations: 16 kB / 400.1 MB, free: 22.4 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001254/0.6261, allocations: 338.8 kB / 400.5 MB, free: 22.06 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007663/0.6269, allocations: 149.9 kB / 400.6 MB, free: 21.91 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001071/0.628, allocations: 0.5468 MB / 401.1 MB, free: 21.17 MB / 298.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: directCapacitor1.currentToVoltage.y = $START.directCapacitor1.currentToVoltage.y ($START.inverseCapacitor1.capacitor.v = $START.directCapacitor1.currentToVoltage.y) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: directInductor3.currentToVoltage.y = $START.directInductor3.currentToVoltage.y ($START.inverseInductor3.inductor.i = $START.directInductor3.currentToVoltage.y) Notification: Performance of analyzeInitialSystem (initialization): time 0.001554/0.6296, allocations: 438.9 kB / 401.6 MB, free: 20.71 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.199e-05/0.6297, allocations: 7.953 kB / 401.6 MB, free: 20.7 MB / 298.7 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.00314/0.6329, allocations: 0.7505 MB / 402.3 MB, free: 19.94 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.776e-05/0.633, allocations: 15.95 kB / 402.4 MB, free: 19.92 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.537e-05/0.633, allocations: 16 kB / 402.4 MB, free: 19.91 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005484/0.6336, allocations: 77.69 kB / 402.4 MB, free: 19.82 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001662/0.6353, allocations: 188.1 kB / 402.6 MB, free: 19.64 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004326/0.6397, allocations: 3.001 MB / 405.6 MB, free: 16.37 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001204/0.641, allocations: 36.06 kB / 405.7 MB, free: 16.34 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001472/0.6412, allocations: 40 kB / 405.7 MB, free: 16.3 MB / 298.7 MB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization sytem: directCapacitor1.currentToVoltage.y = $START.directCapacitor1.currentToVoltage.y directInductor3.currentToVoltage.y = $START.directInductor3.currentToVoltage.y. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 65 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001072/0.6422, allocations: 269.5 kB / 406 MB, free: 16.02 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003245/0.6426, allocations: 75.06 kB / 406 MB, free: 15.95 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002509/0.6429, allocations: 70.41 kB / 406.1 MB, free: 15.88 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.217e-05/0.6429, allocations: 7.938 kB / 406.1 MB, free: 15.87 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.217e-05/0.6429, allocations: 4.125 kB / 406.1 MB, free: 15.86 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.226e-05/0.643, allocations: 11.95 kB / 406.1 MB, free: 15.85 MB / 298.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004406/0.6474, allocations: 1.349 MB / 407.5 MB, free: 14.41 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.191e-05/0.6475, allocations: 0 / 407.5 MB, free: 14.41 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009326/0.6484, allocations: 75.83 kB / 407.6 MB, free: 14.34 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000442/0.6489, allocations: 53.67 kB / 407.6 MB, free: 14.28 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.943e-05/0.649, allocations: 8 kB / 407.6 MB, free: 14.27 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003634/0.6527, allocations: 2.795 MB / 410.4 MB, free: 11.21 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.132e-06/0.6528, allocations: 0 / 410.4 MB, free: 11.21 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002223/0.655, allocations: 0.6852 MB / 411.1 MB, free: 10.48 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003151/0.6554, allocations: 136.1 kB / 411.2 MB, free: 10.33 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001349/0.6555, allocations: 8.188 kB / 411.2 MB, free: 10.32 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007199/0.6563, allocations: 23.98 kB / 411.3 MB, free: 10.3 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001654/0.6565, allocations: 27.97 kB / 411.3 MB, free: 10.27 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.782e-05/0.6565, allocations: 11.98 kB / 411.3 MB, free: 10.26 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.001211/0.6578, allocations: 427 kB / 411.7 MB, free: 9.848 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.613e-06/0.6579, allocations: 0 / 411.7 MB, free: 9.848 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.002331/0.6602, allocations: 156 kB / 411.9 MB, free: 9.695 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (inverseInductor3.inductor.i,inductor4a.i,inductor4b.i,directCapacitor1.currentToVoltage.y,capacitor2a.v,capacitor2b.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003086/0.6606, allocations: 119.2 kB / 412 MB, free: 9.566 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002535/0.6631, allocations: 0.6513 MB / 412.6 MB, free: 8.895 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.285e-05/0.6632, allocations: 8.375 kB / 412.6 MB, free: 8.887 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001047/0.6643, allocations: 373.1 kB / 413 MB, free: 8.496 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009642/0.6653, allocations: 68.12 kB / 413.1 MB, free: 8.434 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007791/0.6731, allocations: 2.371 MB / 415.4 MB, free: 6.027 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009881/0.6742, allocations: 1.058 MB / 416.5 MB, free: 4.941 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003811/0.6746, allocations: 63.41 kB / 416.6 MB, free: 4.879 MB / 298.7 MB Notification: Performance of SimCode: time 1.724e-06/0.6747, allocations: 4 kB / 416.6 MB, free: 4.875 MB / 298.7 MB Notification: Performance of Templates: time 0.05794/0.7326, allocations: 18.43 MB / 435 MB, free: 2.426 MB / 314.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches