Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.FluxTubes.Sources.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(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_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_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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009408/0.0009409, allocations: 183.7 kB / 7.8 MB, free: 2.445 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.116/1.116, allocations: 205.2 MB / 213.4 MB, free: 13.88 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.0008442/0.0008443, allocations: 87.42 kB / 261.4 MB, free: 13.57 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1589/0.1589, allocations: 43.49 MB / 352.9 MB, free: 1.961 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.641e-06/5.971e-06, allocations: 0 / 417.7 MB, free: 40.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2326/0.2326, allocations: 58.84 MB / 476.6 MB, free: 5.223 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1053/0.338, allocations: 87.03 MB / 0.5504 GB, free: 11.94 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001554/0.3382, allocations: 59.97 kB / 0.5504 GB, free: 11.88 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.01701/0.3552, allocations: 6.627 MB / 0.5569 GB, free: 5.219 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.051e-05/0.3552, allocations: 8 kB / 0.5569 GB, free: 5.211 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.0008408/0.3561, allocations: 0.5918 MB / 0.5575 GB, free: 4.574 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.485e-05/0.3561, allocations: 12.03 kB / 0.5575 GB, free: 4.562 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.61e-05/0.3562, allocations: 35.53 kB / 0.5575 GB, free: 4.527 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000312/0.3565, allocations: 284.2 kB / 0.5578 GB, free: 4.207 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.424e-05/0.3566, allocations: 8 kB / 0.5578 GB, free: 4.199 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.295e-05/0.3566, allocations: 20 kB / 0.5578 GB, free: 4.18 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003473/0.3569, allocations: 189.5 kB / 0.558 GB, free: 3.992 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003884/0.3573, allocations: 278.3 kB / 0.5583 GB, free: 3.699 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.084e-05/0.3574, allocations: 0 / 0.5583 GB, free: 3.699 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.246e-05/0.3574, allocations: 0 / 0.5583 GB, free: 3.699 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.033e-05/0.3574, allocations: 8 kB / 0.5583 GB, free: 3.691 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001565/0.359, allocations: 1.216 MB / 0.5595 GB, free: 2.402 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00028/0.3593, allocations: 158.6 kB / 0.5596 GB, free: 2.211 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.684e-05/0.3593, allocations: 55.66 kB / 0.5597 GB, free: 2.145 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.558e-05/0.3594, allocations: 7.984 kB / 0.5597 GB, free: 2.137 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.05e-05/0.3594, allocations: 42.5 kB / 0.5597 GB, free: 2.086 MB / 394.7 MB Notification: Performance of pre-optimization done (n=15): time 1.182e-06/0.3594, allocations: 0 / 0.5597 GB, free: 2.086 MB / 394.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002962/0.3597, allocations: 125.3 kB / 0.5598 GB, free: 1.957 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.527e-05/0.3598, allocations: 128.5 kB / 0.56 GB, free: 1.801 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002025/0.36, allocations: 231.4 kB / 0.5602 GB, free: 1.57 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.529e-05/0.36, allocations: 25.7 kB / 0.5602 GB, free: 1.539 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.965e-05/0.3601, allocations: 223.3 kB / 0.5604 GB, free: 1.312 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.381e-05/0.3601, allocations: 51.3 kB / 0.5605 GB, free: 1.262 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.598e-06/0.3602, allocations: 4.031 kB / 0.5605 GB, free: 1.258 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.231e-05/0.3603, allocations: 334.8 kB / 0.5608 GB, free: 0.9219 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.77e-05/0.3604, allocations: 48.56 kB / 0.5608 GB, free: 0.8711 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001251/0.3605, allocations: 140.6 kB / 0.561 GB, free: 0.6953 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001048/0.3606, allocations: 55.98 kB / 0.561 GB, free: 0.6406 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/0.3606, allocations: 7.906 kB / 0.561 GB, free: 0.6328 MB / 394.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0003175/0.3609, allocations: 225.1 kB / 0.5613 GB, free: 416 kB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.042e-05/0.3609, allocations: 4 kB / 0.5613 GB, free: 412 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.311e-06/0.361, allocations: 4 kB / 0.5613 GB, free: 408 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.299e-05/0.361, allocations: 4 kB / 0.5613 GB, free: 404 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003291/0.3613, allocations: 84.33 kB / 0.5613 GB, free: 320 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.307e-06/0.3613, allocations: 11.98 kB / 0.5614 GB, free: 308 kB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002436/0.3616, allocations: 43.67 kB / 0.5614 GB, free: 264 kB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.857e-05/0.3616, allocations: 12 kB / 0.5614 GB, free: 252 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 7.075e-05/0.3617, allocations: 125.4 kB / 0.5615 GB, free: 124 kB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.319e-05/0.3618, allocations: 23.72 kB / 0.5616 GB, free: 100 kB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.524e-05/0.3618, allocations: 21.42 kB / 0.5616 GB, free: 72 kB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.3618, allocations: 4 kB / 0.5616 GB, free: 68 kB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.3619, allocations: 0 / 0.5616 GB, free: 68 kB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.3619, allocations: 11.92 kB / 0.5616 GB, free: 56 kB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000617/0.3625, allocations: 0.5296 MB / 0.5621 GB, free: 15.46 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.3625, allocations: 0 / 0.5621 GB, free: 15.46 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002007/0.3627, allocations: 56.06 kB / 0.5622 GB, free: 15.41 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.51e-06/0.3627, allocations: 7.984 kB / 0.5622 GB, free: 15.4 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.22e-05/0.3627, allocations: 3.906 kB / 0.5622 GB, free: 15.4 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.3627, allocations: 4 kB / 0.5622 GB, free: 15.39 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-06/0.3628, allocations: 0 / 0.5622 GB, free: 15.39 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002786/0.363, allocations: 405 kB / 0.5626 GB, free: 14.93 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.097e-05/0.3631, allocations: 108.7 kB / 0.5627 GB, free: 14.8 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.78e-05/0.3632, allocations: 7.984 kB / 0.5627 GB, free: 14.8 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002275/0.3634, allocations: 15.98 kB / 0.5627 GB, free: 14.78 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.124e-05/0.3634, allocations: 15.98 kB / 0.5627 GB, free: 14.77 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.129e-05/0.3635, allocations: 8 kB / 0.5627 GB, free: 14.76 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0001333/0.3636, allocations: 175.1 kB / 0.5629 GB, free: 14.59 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003403/0.3639, allocations: 71.73 kB / 0.5629 GB, free: 14.52 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.0001021/0.3641, allocations: 103.1 kB / 0.563 GB, free: 14.41 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00022/0.3643, allocations: 135.9 kB / 0.5632 GB, free: 14.28 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.202e-06/0.3643, allocations: 3.938 kB / 0.5632 GB, free: 14.27 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 8.669e-05/0.3644, allocations: 51.88 kB / 0.5632 GB, free: 14.22 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002371/0.3646, allocations: 20.89 kB / 0.5632 GB, free: 14.2 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006879/0.3653, allocations: 359.2 kB / 0.5636 GB, free: 13.8 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003544/0.3657, allocations: 0.8125 MB / 0.5644 GB, free: 12.97 MB / 410.7 MB Notification: Performance of SimCode: time 2.31e-07/0.3657, allocations: 0 / 0.5644 GB, free: 12.97 MB / 410.7 MB Notification: Performance of Templates: time 0.004432/0.3701, allocations: 1.891 MB / 0.5662 GB, free: 11.08 MB / 410.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.FluxTubes.Sources.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.FluxTubes.Sources.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.FluxTubes.Sources.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.FluxTubes.Sources.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.FluxTubes.Sources.sim & ./ModelicaTest_3.2.3_ModelicaTest.FluxTubes.Sources -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.FluxTubes.Sources.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_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_ModelicaTest.FluxTubes.Sources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches