Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.Blocks.UnitDeduction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Asec.y|PI.x|PID.D.x|PID.I.y|PID1.D.x|PID1.I.y|Vsec.y|Wsec.y|derivative.x|firstOrder.y|inertia.phi|inertia.w|integrator.y|limIntegrator.y|secondOrder.y|secondOrder.yd",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction") translateModel(ModelicaTest.Blocks.UnitDeduction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Asec.y|PI.x|PID.D.x|PID.I.y|PID1.D.x|PID1.I.y|Vsec.y|Wsec.y|derivative.x|firstOrder.y|inertia.phi|inertia.w|integrator.y|limIntegrator.y|secondOrder.y|secondOrder.yd",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction") [: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 trunk/package.mo): time 0.001892/0.001892, allocations: 205.6 kB / 8.54 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.23/1.23, allocations: 225.5 MB / 234.4 MB, free: 3.395 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009684/0.0009684, allocations: 96.39 kB / 286.3 MB, free: 5.258 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2018/0.2018, allocations: 45.14 MB / 383.3 MB, free: 0.5508 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 7.734e-06/7.804e-06, allocations: 4 kB / 452.6 MB, free: 76.2 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1353/0.1353, allocations: 63.25 MB / 0.5038 GB, free: 13.03 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4261/0.5614, allocations: 95.94 MB / 0.5975 GB, free: 7.121 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002621/0.5617, allocations: 68.34 kB / 0.5975 GB, free: 7.09 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.04035/0.6021, allocations: 14.11 MB / 0.6113 GB, free: 11.48 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.587e-05/0.6022, allocations: 27.92 kB / 0.6113 GB, free: 11.45 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 132 * Number of variables: 132 Notification: Performance of Generate backend data structure: time 0.001659/0.6039, allocations: 0.8836 MB / 0.6122 GB, free: 10.57 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.953e-05/0.604, allocations: 8.031 kB / 0.6122 GB, free: 10.56 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003456/0.6043, allocations: 103 kB / 0.6123 GB, free: 10.46 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009436/0.6053, allocations: 0.5101 MB / 0.6128 GB, free: 9.973 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.955e-05/0.6053, allocations: 19.91 kB / 0.6128 GB, free: 9.953 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.125e-05/0.6054, allocations: 43.88 kB / 0.6129 GB, free: 9.914 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005668/0.606, allocations: 289.2 kB / 0.6131 GB, free: 9.738 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007579/0.6068, allocations: 0.5066 MB / 0.6136 GB, free: 9.289 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.657e-05/0.6068, allocations: 7.922 kB / 0.6136 GB, free: 9.281 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.462e-05/0.6069, allocations: 4 kB / 0.6136 GB, free: 9.277 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.494e-05/0.6069, allocations: 12 kB / 0.6136 GB, free: 9.266 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003979/0.6109, allocations: 2.892 MB / 0.6165 GB, free: 6.621 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006072/0.6115, allocations: 334.9 kB / 0.6168 GB, free: 6.379 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002218/0.6117, allocations: 134.3 kB / 0.6169 GB, free: 6.293 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.511e-05/0.6118, allocations: 12.03 kB / 0.6169 GB, free: 6.281 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.361e-05/0.6118, allocations: 38.44 kB / 0.617 GB, free: 6.238 MB / 410.7 MB Notification: Performance of pre-optimization done (n=39): time 2.855e-06/0.6118, allocations: 3.938 kB / 0.617 GB, free: 6.234 MB / 410.7 MB Notification: Performance of matching and sorting (n=39): time 0.0007435/0.6126, allocations: 329.2 kB / 0.6173 GB, free: 5.98 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.312e-05/0.6127, allocations: 106.8 kB / 0.6174 GB, free: 5.852 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005525/0.6133, allocations: 449 kB / 0.6178 GB, free: 5.508 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.776e-05/0.6133, allocations: 25.7 kB / 0.6178 GB, free: 5.477 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002137/0.6135, allocations: 283.2 kB / 0.6181 GB, free: 5.23 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001369/0.6137, allocations: 148.8 kB / 0.6183 GB, free: 5.102 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.137e-05/0.6137, allocations: 0 / 0.6183 GB, free: 5.102 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001863/0.6139, allocations: 376.6 kB / 0.6186 GB, free: 4.754 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002373/0.6141, allocations: 129.7 kB / 0.6187 GB, free: 4.684 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003928/0.6145, allocations: 350.6 kB / 0.6191 GB, free: 4.32 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003709/0.6149, allocations: 177.2 kB / 0.6192 GB, free: 4.207 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.968e-06/0.6149, allocations: 0 / 0.6192 GB, free: 4.207 MB / 410.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.0009786/0.6159, allocations: 0.5146 MB / 0.6197 GB, free: 3.793 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00115/0.6171, allocations: 2.609 MB / 0.6223 GB, free: 1.027 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.634e-05/0.6171, allocations: 11.91 kB / 0.6223 GB, free: 1.016 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.94e-05/0.6171, allocations: 12 kB / 0.6223 GB, free: 1.004 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005917/0.6177, allocations: 145.9 kB / 0.6225 GB, free: 0.8672 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.656e-05/0.6178, allocations: 15.98 kB / 0.6225 GB, free: 0.8516 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004772/0.6182, allocations: 59.52 kB / 0.6225 GB, free: 0.793 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.695e-05/0.6183, allocations: 30.55 kB / 0.6226 GB, free: 0.7656 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.628e-06/0.6183, allocations: 4 kB / 0.6226 GB, free: 0.7617 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00069/0.619, allocations: 421.2 kB / 0.623 GB, free: 468 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/0.619, allocations: 8.875 kB / 0.623 GB, free: 460 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.628e-05/0.619, allocations: 15.91 kB / 0.623 GB, free: 444 kB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000514/0.6196, allocations: 142.2 kB / 0.6231 GB, free: 308 kB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.438e-06/0.6196, allocations: 12 kB / 0.6231 GB, free: 296 kB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003765/0.62, allocations: 47.58 kB / 0.6232 GB, free: 248 kB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.01e-05/0.62, allocations: 31.42 kB / 0.6232 GB, free: 220 kB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 7 (Asec.local_reset,Vsec.local_reset,Wsec.local_reset,PID1.I.local_reset,PID.I.local_reset,limIntegrator.local_reset,integrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (78): * Single equations (assignments): 78 * 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.0001827/0.6202, allocations: 131.4 kB / 0.6233 GB, free: 88 kB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001209/0.6203, allocations: 71.08 kB / 0.6234 GB, free: 16 kB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002055/0.6205, allocations: 65.55 kB / 0.6235 GB, free: 15.97 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.813e-06/0.6206, allocations: 4 kB / 0.6235 GB, free: 15.96 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.728e-06/0.6206, allocations: 0 / 0.6235 GB, free: 15.96 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.165e-06/0.6206, allocations: 3.984 kB / 0.6235 GB, free: 15.96 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007645/0.6214, allocations: 0.511 MB / 0.624 GB, free: 15.53 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.6214, allocations: 0 / 0.624 GB, free: 15.53 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005221/0.6219, allocations: 95.77 kB / 0.6241 GB, free: 15.44 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.927e-06/0.6219, allocations: 0 / 0.6241 GB, free: 15.44 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.429e-05/0.622, allocations: 7.938 kB / 0.6241 GB, free: 15.44 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.057e-06/0.622, allocations: 4.219 kB / 0.6241 GB, free: 15.43 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.259e-05/0.622, allocations: 8 kB / 0.6241 GB, free: 15.43 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008693/0.6229, allocations: 0.6725 MB / 0.6247 GB, free: 14.88 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002116/0.6231, allocations: 175 kB / 0.6249 GB, free: 14.71 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.188e-05/0.6232, allocations: 4 kB / 0.6249 GB, free: 14.71 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004026/0.6236, allocations: 31.97 kB / 0.6249 GB, free: 14.68 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.041e-05/0.6237, allocations: 27.7 kB / 0.625 GB, free: 14.66 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.594e-05/0.6237, allocations: 11.69 kB / 0.625 GB, free: 14.65 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0003573/0.6241, allocations: 335.2 kB / 0.6253 GB, free: 14.41 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0008193/0.6249, allocations: 223.1 kB / 0.6255 GB, free: 14.19 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 16 (integrator.y,inertia.phi,inertia.w,limIntegrator.y,derivative.x,firstOrder.y,secondOrder.y,secondOrder.yd,PI.x,PID.I.y,PID.D.x,PID1.I.y,PID1.D.x,Wsec.y,Vsec.y,Asec.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 39 * 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.0001787/0.6251, allocations: 112 kB / 0.6256 GB, free: 14.07 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0009706/0.6261, allocations: 0.6039 MB / 0.6262 GB, free: 13.65 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.6261, allocations: 4.125 kB / 0.6262 GB, free: 13.65 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002201/0.6263, allocations: 153.5 kB / 0.6264 GB, free: 13.55 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008426/0.6271, allocations: 139.9 kB / 0.6265 GB, free: 13.44 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002116/0.6293, allocations: 1.037 MB / 0.6275 GB, free: 12.45 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007398/0.63, allocations: 0.9816 MB / 0.6285 GB, free: 11.45 MB / 426.7 MB Notification: Performance of SimCode: time 5.21e-07/0.63, allocations: 0 / 0.6285 GB, free: 11.45 MB / 426.7 MB Notification: Performance of Templates: time 0.01904/0.6491, allocations: 8.605 MB / 0.6369 GB, free: 2.902 MB / 426.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/UnitDeduction/UnitDeduction.csv","../files/ModelicaTest_trunk_ModelicaTest.Blocks.UnitDeduction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches