Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous_InitialState.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.Blocks.Continuous_InitialState,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|criticalDamping.x.1.|criticalDamping.x.2.|derivative.x|firstOrder.y|integrator.y|limIntegrator.y|limPID.D.x|limPID.I.y|lowpassButterworth.x1.1.|lowpassButterworth.x2.1.|pI.x|pID.D.x|pID.I.y|secondOrder.y|secondOrder.yd|stateSpace.x.1.|stateSpace.x.2.|transferFunction.x_scaled.1.",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous_InitialState") translateModel(ModelicaTest.Blocks.Continuous_InitialState,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|criticalDamping.x.1.|criticalDamping.x.2.|derivative.x|firstOrder.y|integrator.y|limIntegrator.y|limPID.D.x|limPID.I.y|lowpassButterworth.x1.1.|lowpassButterworth.x2.1.|pI.x|pID.D.x|pID.I.y|secondOrder.y|secondOrder.yd|stateSpace.x.1.|stateSpace.x.2.|transferFunction.x_scaled.1.",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous_InitialState") [: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.002328/0.002328, allocations: 172.2 kB / 8.144 MB, free: 2.211 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.72/1.72, 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.00128/0.00128, allocations: 92.88 kB / 261.8 MB, free: 13.62 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.2628/0.2628, allocations: 43.49 MB / 353.2 MB, free: 2.047 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 9.267e-06/9.408e-06, allocations: 4 kB / 417.7 MB, free: 40.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2777/0.2777, allocations: 58.84 MB / 476.5 MB, free: 5.078 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1908/0.4686, allocations: 95.26 MB / 0.5584 GB, free: 3.809 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002556/0.4689, allocations: 59.97 kB / 0.5585 GB, free: 3.75 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.1384/0.6074, allocations: 27.49 MB / 0.5853 GB, free: 8.164 MB / 426.7 MB Notification: Performance of Transformations before backend: time 9.88e-05/0.6075, allocations: 23.94 kB / 0.5853 GB, free: 8.141 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 110 * Number of variables: 110 Notification: Performance of Generate backend data structure: time 0.003207/0.6107, allocations: 0.9503 MB / 0.5863 GB, free: 7.145 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.786e-05/0.6108, allocations: 11.97 kB / 0.5863 GB, free: 7.133 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003986/0.6112, allocations: 98.88 kB / 0.5864 GB, free: 7.035 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001912/0.6131, allocations: 0.5587 MB / 0.5869 GB, free: 6.438 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.515e-05/0.6132, allocations: 16 kB / 0.5869 GB, free: 6.422 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001625/0.6134, allocations: 39.91 kB / 0.587 GB, free: 6.383 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001218/0.6146, allocations: 329.9 kB / 0.5873 GB, free: 6.059 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001289/0.6159, allocations: 0.4947 MB / 0.5878 GB, free: 5.508 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.99e-05/0.616, allocations: 11.84 kB / 0.5878 GB, free: 5.496 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.47e-05/0.6161, allocations: 4 kB / 0.5878 GB, free: 5.492 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.989e-05/0.6161, allocations: 8 kB / 0.5878 GB, free: 5.484 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006614/0.6227, allocations: 2.592 MB / 0.5903 GB, free: 2.805 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001427/0.6242, allocations: 446.3 kB / 0.5907 GB, free: 2.344 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006075/0.6249, allocations: 186.9 kB / 0.5909 GB, free: 2.152 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.111e-05/0.625, allocations: 7.938 kB / 0.5909 GB, free: 2.145 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.301e-05/0.625, allocations: 46.58 kB / 0.591 GB, free: 2.09 MB / 426.7 MB Notification: Performance of pre-optimization done (n=43): time 4.098e-06/0.625, allocations: 0 / 0.591 GB, free: 2.09 MB / 426.7 MB Notification: Performance of matching and sorting (n=44): time 0.002578/0.6276, allocations: 0.7755 MB / 0.5917 GB, free: 1.305 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001149/0.6278, allocations: 136.5 kB / 0.5919 GB, free: 1.141 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00113/0.6289, allocations: 499.8 kB / 0.5923 GB, free: 0.6445 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001346/0.6291, allocations: 29.7 kB / 0.5924 GB, free: 0.6094 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000188/0.6293, allocations: 267.2 kB / 0.5926 GB, free: 352 kB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002447/0.6296, allocations: 165.6 kB / 0.5928 GB, free: 184 kB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.594e-05/0.6296, allocations: 0 / 0.5928 GB, free: 184 kB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001839/0.6298, allocations: 334.8 kB / 0.5931 GB, free: 15.84 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000663/0.6305, allocations: 197.3 kB / 0.5933 GB, free: 15.65 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007781/0.6313, allocations: 349.7 kB / 0.5936 GB, free: 15.24 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000718/0.632, allocations: 249 kB / 0.5938 GB, free: 15 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.364e-06/0.632, allocations: 4 kB / 0.5939 GB, free: 14.99 MB / 442.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.001719/0.6338, allocations: 0.5698 MB / 0.5944 GB, free: 14.42 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008912/0.6347, allocations: 1.753 MB / 0.5961 GB, free: 12.53 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.052e-05/0.6347, allocations: 4 kB / 0.5961 GB, free: 12.52 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.666e-05/0.6348, allocations: 11.98 kB / 0.5961 GB, free: 12.51 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001534/0.6363, allocations: 163.8 kB / 0.5963 GB, free: 12.35 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.132e-05/0.6364, allocations: 11.98 kB / 0.5963 GB, free: 12.34 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007938/0.6372, allocations: 71.59 kB / 0.5964 GB, free: 12.27 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.42e-05/0.6373, allocations: 23.91 kB / 0.5964 GB, free: 12.25 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.276e-05/0.6373, allocations: 8 kB / 0.5964 GB, free: 12.24 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001598/0.6389, allocations: 0.5 MB / 0.5969 GB, free: 11.74 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.226e-05/0.6389, allocations: 4 kB / 0.5969 GB, free: 11.73 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.949e-05/0.639, allocations: 12.03 kB / 0.5969 GB, free: 11.72 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00135/0.6403, allocations: 167.7 kB / 0.5971 GB, free: 11.56 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.513e-05/0.6404, allocations: 8 kB / 0.5971 GB, free: 11.55 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007332/0.6411, allocations: 59.66 kB / 0.5971 GB, free: 11.49 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.267e-05/0.6412, allocations: 27.94 kB / 0.5972 GB, free: 11.46 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 4 (limPID.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 (77): * Single equations (assignments): 77 * 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.0002055/0.6414, allocations: 59.28 kB / 0.5972 GB, free: 11.41 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003028/0.6417, allocations: 75.16 kB / 0.5973 GB, free: 11.33 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000338/0.6421, allocations: 73.88 kB / 0.5974 GB, free: 11.26 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.052e-05/0.6421, allocations: 4 kB / 0.5974 GB, free: 11.25 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.047e-05/0.6421, allocations: 11.91 kB / 0.5974 GB, free: 11.24 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.899e-06/0.6422, allocations: 7.922 kB / 0.5974 GB, free: 11.23 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001885/0.644, allocations: 0.7483 MB / 0.5981 GB, free: 10.44 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.865e-06/0.6441, allocations: 4 kB / 0.5981 GB, free: 10.44 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001488/0.6456, allocations: 115.9 kB / 0.5982 GB, free: 10.32 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.908e-06/0.6456, allocations: 0 / 0.5982 GB, free: 10.32 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.884e-05/0.6457, allocations: 11.98 kB / 0.5982 GB, free: 10.31 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.516e-06/0.6457, allocations: 7.938 kB / 0.5982 GB, free: 10.3 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.068e-05/0.6458, allocations: 4 kB / 0.5982 GB, free: 10.3 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002271/0.648, allocations: 0.9542 MB / 0.5992 GB, free: 9.312 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004964/0.6486, allocations: 196 kB / 0.5994 GB, free: 9.102 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001727/0.6488, allocations: 19.98 kB / 0.5994 GB, free: 9.082 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001228/0.65, allocations: 55.95 kB / 0.5994 GB, free: 9.027 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001918/0.6502, allocations: 35.88 kB / 0.5995 GB, free: 8.992 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.974e-05/0.6503, allocations: 15.98 kB / 0.5995 GB, free: 8.977 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.0007989/0.6511, allocations: 383.2 kB / 0.5999 GB, free: 8.609 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001282/0.6524, allocations: 171.9 kB / 0.6 GB, free: 8.441 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 18 (limPID.I.y,limPID.D.x,transferFunction.x_scaled[1],stateSpace.x[1],stateSpace.x[2],lowpassButterworth.x1[1],lowpassButterworth.x2[1],criticalDamping.x[1],criticalDamping.x[2],integrator.y,limIntegrator.y,derivative.x,firstOrder.y,secondOrder.y,secondOrder.yd,pI.x,pID.I.y,pID.D.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 44 * 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.0002631/0.6527, allocations: 115 kB / 0.6001 GB, free: 8.316 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002369/0.6551, allocations: 0.7609 MB / 0.6009 GB, free: 7.559 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.981e-06/0.6551, allocations: 0 / 0.6009 GB, free: 7.559 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006688/0.6558, allocations: 228 kB / 0.6011 GB, free: 7.336 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001692/0.6575, allocations: 147.2 kB / 0.6012 GB, free: 7.191 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004516/0.6621, allocations: 1.206 MB / 0.6024 GB, free: 5.945 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001271/0.6634, allocations: 1.019 MB / 0.6034 GB, free: 4.898 MB / 442.7 MB Notification: Performance of SimCode: time 1.473e-06/0.6634, allocations: 0 / 0.6034 GB, free: 4.898 MB / 442.7 MB Notification: Performance of Templates: time 0.02071/0.6841, allocations: 8.595 MB / 0.6118 GB, free: 12.31 MB / 458.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous_InitialState.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous_InitialState.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous_InitialState.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous_InitialState.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous_InitialState.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous_InitialState --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous_InitialState.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous_InitialState_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Continuous_InitialState/Continuous_InitialState.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.Continuous_InitialState.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches