Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.FluxTubes.Sources.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.FluxTubes.Sources,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|constantSource.V_m|constantSource.Phi|signalSource.V_m|signalSource.Phi|constantSource1.Phi|constantSource1.V_m|signalSource1.Phi|signalSource1.V_m",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.FluxTubes.Sources") translateModel(ModelicaTest.FluxTubes.Sources,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|constantSource.V_m|constantSource.Phi|signalSource.V_m|signalSource.Phi|constantSource1.Phi|constantSource1.V_m|signalSource1.Phi|signalSource1.V_m",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.FluxTubes.Sources") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00161/0.00161, allocations: 170.2 kB / 8.147 MB, free: 2.223 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.648/1.648, allocations: 205.2 MB / 213.8 MB, free: 13.93 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001253/0.001252, allocations: 93.31 kB / 261.8 MB, free: 13.63 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2562/0.2562, allocations: 43.5 MB / 353.2 MB, free: 2.043 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 8.175e-06/8.265e-06, allocations: 4 kB / 417.7 MB, free: 40.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2835/0.2835, allocations: 58.83 MB / 476.5 MB, free: 5.082 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1529/0.4364, allocations: 87.03 MB / 0.5504 GB, free: 12.04 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003097/0.4368, allocations: 59.97 kB / 0.5504 GB, free: 11.98 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.03467/0.4715, allocations: 6.623 MB / 0.5569 GB, free: 5.328 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.318e-05/0.4715, allocations: 8 kB / 0.5569 GB, free: 5.32 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.002098/0.4737, allocations: 0.5841 MB / 0.5575 GB, free: 4.691 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.704e-05/0.4737, allocations: 8.031 kB / 0.5575 GB, free: 4.684 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001469/0.4739, allocations: 39.53 kB / 0.5575 GB, free: 4.645 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007073/0.4746, allocations: 280.2 kB / 0.5578 GB, free: 4.328 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.003e-05/0.4747, allocations: 8 kB / 0.5578 GB, free: 4.32 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.594e-05/0.4748, allocations: 27.98 kB / 0.5578 GB, free: 4.293 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009323/0.4757, allocations: 189.5 kB / 0.558 GB, free: 4.105 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009855/0.4767, allocations: 270.3 kB / 0.5583 GB, free: 3.82 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.937e-05/0.4768, allocations: 4 kB / 0.5583 GB, free: 3.816 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.047e-05/0.4768, allocations: 0 / 0.5583 GB, free: 3.816 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.146e-05/0.4769, allocations: 8 kB / 0.5583 GB, free: 3.809 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003637/0.4805, allocations: 1.212 MB / 0.5594 GB, free: 2.523 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006756/0.4812, allocations: 166.5 kB / 0.5596 GB, free: 2.324 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001979/0.4814, allocations: 51.62 kB / 0.5597 GB, free: 2.262 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.532e-05/0.4815, allocations: 7.969 kB / 0.5597 GB, free: 2.254 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.924e-05/0.4816, allocations: 42.56 kB / 0.5597 GB, free: 2.203 MB / 394.7 MB Notification: Performance of pre-optimization done (n=15): time 3.136e-06/0.4816, allocations: 0 / 0.5597 GB, free: 2.203 MB / 394.7 MB Notification: Performance of matching and sorting (n=15): time 0.0007004/0.4823, allocations: 121.3 kB / 0.5598 GB, free: 2.078 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.625e-05/0.4824, allocations: 132.5 kB / 0.5599 GB, free: 1.918 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005251/0.4829, allocations: 231.4 kB / 0.5602 GB, free: 1.688 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.238e-05/0.483, allocations: 25.73 kB / 0.5602 GB, free: 1.656 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000221/0.4832, allocations: 281.7 kB / 0.5605 GB, free: 1.375 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.099e-05/0.4833, allocations: 51.3 kB / 0.5605 GB, free: 1.324 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.425e-05/0.4834, allocations: 0 / 0.5605 GB, free: 1.324 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001806/0.4836, allocations: 322.8 kB / 0.5608 GB, free: 1 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002618/0.4838, allocations: 52.5 kB / 0.5609 GB, free: 0.9453 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003583/0.4842, allocations: 140.6 kB / 0.561 GB, free: 0.7695 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003245/0.4846, allocations: 67.89 kB / 0.5611 GB, free: 0.7031 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.983e-06/0.4846, allocations: 7.906 kB / 0.5611 GB, free: 0.6953 MB / 394.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0008711/0.4855, allocations: 201.3 kB / 0.5613 GB, free: 0.4922 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.357e-05/0.4855, allocations: 8 kB / 0.5613 GB, free: 496 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.036e-05/0.4855, allocations: 0 / 0.5613 GB, free: 496 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.907e-05/0.4856, allocations: 8 kB / 0.5613 GB, free: 488 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009439/0.4865, allocations: 84.14 kB / 0.5614 GB, free: 404 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.064e-05/0.4866, allocations: 7.938 kB / 0.5614 GB, free: 396 kB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005715/0.4872, allocations: 43.91 kB / 0.5614 GB, free: 352 kB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.069e-05/0.4872, allocations: 12 kB / 0.5614 GB, free: 340 kB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 34 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001092/0.4874, allocations: 39.05 kB / 0.5615 GB, free: 296 kB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002413/0.4876, allocations: 27.66 kB / 0.5615 GB, free: 268 kB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001214/0.4877, allocations: 25.42 kB / 0.5615 GB, free: 236 kB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.371e-05/0.4878, allocations: 3.906 kB / 0.5615 GB, free: 232 kB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.758e-06/0.4878, allocations: 4 kB / 0.5615 GB, free: 228 kB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.752e-06/0.4878, allocations: 4 kB / 0.5615 GB, free: 224 kB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001584/0.4894, allocations: 0.5412 MB / 0.562 GB, free: 15.62 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.146e-06/0.4894, allocations: 4 kB / 0.5621 GB, free: 15.61 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005356/0.49, allocations: 48.12 kB / 0.5621 GB, free: 15.57 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.129e-05/0.49, allocations: 3.906 kB / 0.5621 GB, free: 15.56 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.756e-05/0.4901, allocations: 4 kB / 0.5621 GB, free: 15.56 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.448e-06/0.4901, allocations: 0 / 0.5621 GB, free: 15.56 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.017e-05/0.4901, allocations: 7.938 kB / 0.5621 GB, free: 15.55 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006611/0.4908, allocations: 406.7 kB / 0.5625 GB, free: 15.09 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001381/0.4909, allocations: 108.7 kB / 0.5626 GB, free: 14.96 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.16e-05/0.491, allocations: 4 kB / 0.5626 GB, free: 14.96 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006452/0.4917, allocations: 23.97 kB / 0.5626 GB, free: 14.93 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.359e-05/0.4918, allocations: 11.98 kB / 0.5626 GB, free: 14.92 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.582e-05/0.4918, allocations: 8 kB / 0.5627 GB, free: 14.91 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0003569/0.4922, allocations: 179.1 kB / 0.5628 GB, free: 14.74 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0008962/0.4931, allocations: 71.69 kB / 0.5629 GB, free: 14.67 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 15 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001879/0.4933, allocations: 95.25 kB / 0.563 GB, free: 14.57 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0005919/0.4939, allocations: 140 kB / 0.5631 GB, free: 14.43 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.4939, allocations: 3.938 kB / 0.5631 GB, free: 14.43 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002578/0.4942, allocations: 47.94 kB / 0.5632 GB, free: 14.38 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005621/0.4948, allocations: 20.88 kB / 0.5632 GB, free: 14.36 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001592/0.4964, allocations: 393 kB / 0.5636 GB, free: 13.93 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000784/0.4972, allocations: 0.8086 MB / 0.5643 GB, free: 13.09 MB / 410.7 MB Notification: Performance of SimCode: time 1.072e-06/0.4972, allocations: 0 / 0.5643 GB, free: 13.09 MB / 410.7 MB Notification: Performance of Templates: time 0.00982/0.5071, allocations: 2.987 MB / 0.5673 GB, free: 10.1 MB / 410.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.FluxTubes.Sources.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.FluxTubes.Sources.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.FluxTubes.Sources.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.FluxTubes.Sources.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.FluxTubes.Sources.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.FluxTubes.Sources --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.FluxTubes.Sources.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.FluxTubes.Sources_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/FluxTubes/Sources/Sources.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.FluxTubes.Sources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches