Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous_InitialState.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: "" <> buildModelFMU(ModelicaTest.Blocks.Continuous_InitialState,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Blocks_Continuous_InitialState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Continuous_InitialState,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Blocks_Continuous_InitialState",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00154/0.00154, allocations: 198.2 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.238/1.238, allocations: 226.5 MB / 243.4 MB, free: 6.48 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007187/0.0007186, allocations: 98.94 kB / 295.5 MB, free: 6.688 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2768/0.2768, allocations: 44.82 MB / 392.3 MB, free: 35.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002581/0.0002582, allocations: 12.22 kB / 465.4 MB, free: 12.58 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2584/0.2587, allocations: 62.96 MB / 0.516 GB, free: 37.18 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Continuous_InitialState): time 0.00245/0.2612, allocations: 2.83 MB / 0.5187 GB, free: 35.12 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001813/0.263, allocations: 1.513 MB / 0.5202 GB, free: 34.07 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002308/0.2633, allocations: 19.75 kB / 0.5202 GB, free: 34.06 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003454/0.2636, allocations: 109.1 kB / 0.5203 GB, free: 34 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003039/0.2639, allocations: 153.2 kB / 0.5205 GB, free: 33.92 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007547/0.2647, allocations: 419.9 kB / 0.5209 GB, free: 33.73 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006219/0.2653, allocations: 0.7885 MB / 0.5216 GB, free: 33.37 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000315/0.2657, allocations: 219.6 kB / 0.5218 GB, free: 33.24 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003361/0.266, allocations: 295.6 kB / 0.5221 GB, free: 33.11 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003442/0.2664, allocations: 322.6 kB / 0.5224 GB, free: 32.98 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.629e-05/0.2664, allocations: 20.28 kB / 0.5225 GB, free: 32.98 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.119e-05/0.2665, allocations: 27.06 kB / 0.5225 GB, free: 32.98 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001509/0.2667, allocations: 149.6 kB / 0.5226 GB, free: 32.92 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002061/0.2669, allocations: 298 kB / 0.5229 GB, free: 32.7 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004016/0.2673, allocations: 0.5373 MB / 0.5234 GB, free: 32.57 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.2673, allocations: 0 / 0.5234 GB, free: 32.57 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.2673, allocations: 0 / 0.5234 GB, free: 32.57 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.756e-06/0.2673, allocations: 0 / 0.5234 GB, free: 32.57 MB / 378.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.001643/0.269, allocations: 1.052 MB / 0.5245 GB, free: 31.88 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.581e-05/0.269, allocations: 14.05 kB / 0.5245 GB, free: 31.88 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.298e-05/0.2691, allocations: 82.16 kB / 0.5246 GB, free: 31.81 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001889/0.2693, allocations: 110.5 kB / 0.5247 GB, free: 31.76 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006522/0.27, allocations: 0.5506 MB / 0.5252 GB, free: 31.38 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.999e-05/0.27, allocations: 41.47 kB / 0.5252 GB, free: 31.36 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.832e-05/0.2701, allocations: 58.53 kB / 0.5253 GB, free: 31.33 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009071/0.271, allocations: 0.6209 MB / 0.5259 GB, free: 31.01 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.18e-05/0.271, allocations: 10.22 kB / 0.5259 GB, free: 31 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.281e-05/0.2711, allocations: 22.38 kB / 0.5259 GB, free: 30.99 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.037e-06/0.2711, allocations: 9.156 kB / 0.5259 GB, free: 30.99 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009225/0.272, allocations: 498.5 kB / 0.5264 GB, free: 30.84 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002742/0.2748, allocations: 2.7 MB / 0.529 GB, free: 28.98 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009284/0.2757, allocations: 0.5711 MB / 0.5296 GB, free: 28.75 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004768/0.2762, allocations: 276.1 kB / 0.5299 GB, free: 28.65 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.122e-05/0.2763, allocations: 2.688 kB / 0.5299 GB, free: 28.65 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.13e-05/0.2763, allocations: 49.08 kB / 0.5299 GB, free: 28.6 MB / 378.7 MB Notification: Performance of pre-optimization done (n=43): time 1.784e-06/0.2763, allocations: 0 / 0.5299 GB, free: 28.6 MB / 378.7 MB Notification: Performance of matching and sorting (n=44): time 0.002106/0.2784, allocations: 1.21 MB / 0.5311 GB, free: 28.07 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.802e-05/0.2785, allocations: 135.4 kB / 0.5312 GB, free: 27.91 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006452/0.2791, allocations: 0.6441 MB / 0.5319 GB, free: 27.64 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.281e-05/0.2792, allocations: 33.7 kB / 0.5319 GB, free: 27.6 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001672/0.2793, allocations: 361.1 kB / 0.5322 GB, free: 27.32 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.057e-05/0.2794, allocations: 177.8 kB / 0.5324 GB, free: 27.17 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.833e-05/0.2795, allocations: 10.84 kB / 0.5324 GB, free: 27.16 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.471e-05/0.2795, allocations: 339.6 kB / 0.5327 GB, free: 26.84 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005402/0.2801, allocations: 284.2 kB / 0.533 GB, free: 26.77 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005872/0.2807, allocations: 450.8 kB / 0.5334 GB, free: 26.5 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001096/0.2818, allocations: 0.7134 MB / 0.5341 GB, free: 26.12 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.2818, allocations: 0 / 0.5341 GB, free: 26.12 MB / 378.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.00138/0.2832, allocations: 0.8345 MB / 0.535 GB, free: 25.83 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.83e-05/0.2832, allocations: 218.5 kB / 0.5352 GB, free: 25.56 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.716e-06/0.2833, allocations: 12.25 kB / 0.5352 GB, free: 25.56 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.76e-05/0.2833, allocations: 7.688 kB / 0.5352 GB, free: 25.56 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006046/0.2839, allocations: 153.8 kB / 0.5353 GB, free: 25.55 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.328e-05/0.2839, allocations: 18.84 kB / 0.5353 GB, free: 25.54 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000459/0.2844, allocations: 82.52 kB / 0.5354 GB, free: 25.52 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.074e-05/0.2844, allocations: 32.38 kB / 0.5355 GB, free: 25.5 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.089e-06/0.2844, allocations: 2.75 kB / 0.5355 GB, free: 25.5 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001172/0.2856, allocations: 0.7126 MB / 0.5362 GB, free: 25.27 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.668e-06/0.2856, allocations: 5.781 kB / 0.5362 GB, free: 25.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.342e-06/0.2857, allocations: 9.25 kB / 0.5362 GB, free: 25.27 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005504/0.2862, allocations: 153.8 kB / 0.5363 GB, free: 25.25 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.356e-06/0.2862, allocations: 10.5 kB / 0.5363 GB, free: 25.25 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004256/0.2867, allocations: 89.64 kB / 0.5364 GB, free: 25.21 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.625e-05/0.2867, allocations: 22.38 kB / 0.5364 GB, free: 25.21 MB / 378.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 () * Number of clocked 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.0002192/0.2869, allocations: 296.5 kB / 0.5367 GB, free: 24.96 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001111/0.287, allocations: 72.28 kB / 0.5368 GB, free: 24.93 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001443/0.2872, allocations: 91.2 kB / 0.5369 GB, free: 24.86 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.5e-06/0.2872, allocations: 13.19 kB / 0.5369 GB, free: 24.86 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.2872, allocations: 3.938 kB / 0.5369 GB, free: 24.85 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.032e-06/0.2872, allocations: 3.891 kB / 0.5369 GB, free: 24.85 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009949/0.2882, allocations: 0.8528 MB / 0.5377 GB, free: 24.34 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.2882, allocations: 7 kB / 0.5377 GB, free: 24.34 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006007/0.2888, allocations: 114.3 kB / 0.5378 GB, free: 24.33 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.037e-06/0.2889, allocations: 2.625 kB / 0.5378 GB, free: 24.33 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.091e-05/0.2889, allocations: 17.53 kB / 0.5379 GB, free: 24.32 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.888e-06/0.2889, allocations: 6.75 kB / 0.5379 GB, free: 24.32 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.2889, allocations: 7.938 kB / 0.5379 GB, free: 24.31 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001801/0.2907, allocations: 1.199 MB / 0.539 GB, free: 23.73 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001878/0.2909, allocations: 197.7 kB / 0.5392 GB, free: 23.57 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.826e-05/0.291, allocations: 15.44 kB / 0.5392 GB, free: 23.56 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005149/0.2915, allocations: 65.5 kB / 0.5393 GB, free: 23.55 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001174/0.2917, allocations: 39.25 kB / 0.5393 GB, free: 23.54 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.062e-05/0.2917, allocations: 10.67 kB / 0.5394 GB, free: 23.54 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005576/0.2923, allocations: 455.5 kB / 0.5398 GB, free: 23.35 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.5e-07/0.2923, allocations: 0 / 0.5398 GB, free: 23.35 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000688/0.293, allocations: 190.7 kB / 0.54 GB, free: 23.33 MB / 378.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 () * Number of clocked 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.002065/0.295, allocations: 1.761 MB / 0.5417 GB, free: 22.21 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002005/0.2971, allocations: 1.018 MB / 0.5427 GB, free: 21.93 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.2971, allocations: 0 / 0.5427 GB, free: 21.93 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006185/0.2977, allocations: 300.5 kB / 0.543 GB, free: 21.85 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001093/0.2988, allocations: 170.4 kB / 0.5431 GB, free: 21.8 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007327/0.3061, allocations: 4.921 MB / 0.5479 GB, free: 19.35 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003764/0.3065, allocations: 0.9547 MB / 0.5489 GB, free: 18.63 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003673/0.3069, allocations: 256.3 kB / 0.5491 GB, free: 18.44 MB / 378.7 MB Notification: Performance of SimCode: time 4.31e-07/0.3069, allocations: 0 / 0.5491 GB, free: 18.44 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.107/3.414, allocations: 10.03 MB / 0.5589 GB, free: 12.55 MB / 378.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous_InitialState.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous_InitialState.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous_InitialState.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous_InitialState.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous_InitialState_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Blocks_Continuous_InitialState_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Blocks_Continuous_InitialState.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous_InitialState.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous_InitialState_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Continuous_InitialState/Continuous_InitialState.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.Continuous_InitialState.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches