Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.Continuous_InitialState.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/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 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Continuous_InitialState,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_Continuous_InitialState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Continuous_InitialState,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_Continuous_InitialState",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001168/0.001168, allocations: 103 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001509/0.001509, allocations: 184.1 kB / 16.92 MB, free: 6.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.374/1.374, allocations: 205.4 MB / 223.1 MB, free: 5.539 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3641/0.3641, allocations: 43.57 MB / 315 MB, free: 8.793 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004813/0.0004813, allocations: 16 kB / 384.7 MB, free: 7.559 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1246/0.1251, allocations: 58.86 MB / 443.5 MB, free: 12.59 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Continuous_InitialState): time 0.003675/0.1288, allocations: 3.013 MB / 446.5 MB, free: 9.559 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002744/0.1316, allocations: 1.54 MB / 448.1 MB, free: 8.008 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002786/0.1319, allocations: 23.88 kB / 448.1 MB, free: 7.984 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004687/0.1323, allocations: 107.2 kB / 448.2 MB, free: 7.879 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004079/0.1328, allocations: 163 kB / 448.4 MB, free: 7.719 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001074/0.1339, allocations: 499.2 kB / 448.9 MB, free: 7.23 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008976/0.1348, allocations: 0.8651 MB / 449.7 MB, free: 6.363 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004087/0.1352, allocations: 222.4 kB / 449.9 MB, free: 6.133 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003787/0.1356, allocations: 298.4 kB / 450.2 MB, free: 5.84 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000444/0.136, allocations: 350.1 kB / 450.6 MB, free: 5.496 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.924e-05/0.1361, allocations: 20 kB / 450.6 MB, free: 5.477 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.94e-05/0.1362, allocations: 24 kB / 450.6 MB, free: 5.453 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001675/0.1363, allocations: 155.3 kB / 450.8 MB, free: 5.301 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002616/0.1366, allocations: 315.5 kB / 451.1 MB, free: 4.984 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005878/0.1372, allocations: 0.7002 MB / 451.8 MB, free: 4.281 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.1372, allocations: 0 / 451.8 MB, free: 4.281 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.1372, allocations: 0 / 451.8 MB, free: 4.281 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.156e-06/0.1372, allocations: 0 / 451.8 MB, free: 4.281 MB / 382.1 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.002065/0.1393, allocations: 1.051 MB / 452.8 MB, free: 3.176 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.444e-05/0.1394, allocations: 8.031 kB / 452.8 MB, free: 3.168 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.19e-05/0.1395, allocations: 86.7 kB / 452.9 MB, free: 3.074 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000116/0.1396, allocations: 87.91 kB / 453 MB, free: 2.988 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008117/0.1404, allocations: 0.5662 MB / 453.6 MB, free: 2.379 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.932e-05/0.1405, allocations: 37.38 kB / 453.6 MB, free: 2.344 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.862e-05/0.1406, allocations: 64.27 kB / 453.7 MB, free: 2.281 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001088/0.1417, allocations: 0.6331 MB / 454.3 MB, free: 1.594 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.291e-05/0.1417, allocations: 4 kB / 454.3 MB, free: 1.59 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.91e-05/0.1417, allocations: 16 kB / 454.3 MB, free: 1.574 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.322e-05/0.1418, allocations: 16 kB / 454.3 MB, free: 1.559 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001093/0.1429, allocations: 497.8 kB / 454.8 MB, free: 1.074 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2575/0.4004, allocations: 2.698 MB / 457.5 MB, free: 44.42 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001024/0.4014, allocations: 0.5819 MB / 458.1 MB, free: 44.35 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005446/0.402, allocations: 271.7 kB / 458.4 MB, free: 44.33 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.029e-05/0.4021, allocations: 9.812 kB / 458.4 MB, free: 44.33 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.435e-05/0.4021, allocations: 39.86 kB / 458.4 MB, free: 44.29 MB / 382.1 MB Notification: Performance of pre-optimization done (n=43): time 3.457e-06/0.4021, allocations: 0 / 458.4 MB, free: 44.29 MB / 382.1 MB Notification: Performance of matching and sorting (n=44): time 0.00235/0.4044, allocations: 1.209 MB / 459.6 MB, free: 44.02 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.495e-05/0.4045, allocations: 131.5 kB / 459.8 MB, free: 43.86 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007664/0.4053, allocations: 0.6658 MB / 460.4 MB, free: 43.72 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.86e-05/0.4053, allocations: 38.48 kB / 460.5 MB, free: 43.69 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000201/0.4055, allocations: 358.8 kB / 460.8 MB, free: 43.55 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001116/0.4057, allocations: 175.9 kB / 461 MB, free: 43.44 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.49e-05/0.4057, allocations: 62.64 kB / 461 MB, free: 43.43 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.96e-05/0.4058, allocations: 332.1 kB / 461.4 MB, free: 43.12 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006114/0.4064, allocations: 295.1 kB / 461.7 MB, free: 43.11 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006408/0.4071, allocations: 450.4 kB / 462.1 MB, free: 42.93 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001204/0.4083, allocations: 0.7168 MB / 462.8 MB, free: 42.75 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/0.4083, allocations: 0 / 462.8 MB, free: 42.75 MB / 382.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.00147/0.4098, allocations: 0.8409 MB / 463.7 MB, free: 42.65 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.25e-05/0.4099, allocations: 224.4 kB / 463.9 MB, free: 42.4 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.08e-05/0.4099, allocations: 5.938 kB / 463.9 MB, free: 42.4 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.186e-05/0.4099, allocations: 5.781 kB / 463.9 MB, free: 42.4 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006392/0.4106, allocations: 167.9 kB / 464.1 MB, free: 42.38 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.332e-05/0.4106, allocations: 12.66 kB / 464.1 MB, free: 42.38 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004892/0.4111, allocations: 95.88 kB / 464.2 MB, free: 42.36 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.319e-05/0.4112, allocations: 20.5 kB / 464.2 MB, free: 42.36 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.282e-06/0.4112, allocations: 5.75 kB / 464.2 MB, free: 42.36 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00133/0.4125, allocations: 0.7136 MB / 464.9 MB, free: 42.3 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.4125, allocations: 3 kB / 464.9 MB, free: 42.3 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.584e-06/0.4125, allocations: 9.844 kB / 464.9 MB, free: 42.3 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005662/0.4131, allocations: 160.1 kB / 465.1 MB, free: 42.29 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.716e-06/0.4131, allocations: 6.719 kB / 465.1 MB, free: 42.29 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004793/0.4136, allocations: 79.34 kB / 465.2 MB, free: 42.27 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.857e-05/0.4137, allocations: 33.14 kB / 465.2 MB, free: 42.27 MB / 382.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003214/0.414, allocations: 297.9 kB / 465.5 MB, free: 42.06 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000129/0.4141, allocations: 76.12 kB / 465.5 MB, free: 42.02 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001982/0.4143, allocations: 91.38 kB / 465.6 MB, free: 42.01 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.773e-06/0.4143, allocations: 8.844 kB / 465.6 MB, free: 42.01 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.16e-05/0.4144, allocations: 0 / 465.6 MB, free: 42.01 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.857e-06/0.4144, allocations: 6.062 kB / 465.7 MB, free: 42.01 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001141/0.4155, allocations: 0.8594 MB / 466.5 MB, free: 41.7 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.756e-06/0.4155, allocations: 0 / 466.5 MB, free: 41.7 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006068/0.4161, allocations: 115.8 kB / 466.6 MB, free: 41.69 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.138e-06/0.4162, allocations: 3.312 kB / 466.6 MB, free: 41.69 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.104e-05/0.4162, allocations: 14.59 kB / 466.6 MB, free: 41.69 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.755e-06/0.4162, allocations: 7.125 kB / 466.6 MB, free: 41.68 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.025e-06/0.4162, allocations: 3.812 kB / 466.7 MB, free: 41.68 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001862/0.4181, allocations: 1.2 MB / 467.9 MB, free: 41.33 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002043/0.4183, allocations: 203.2 kB / 468.1 MB, free: 41.19 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.392e-05/0.4184, allocations: 10.41 kB / 468.1 MB, free: 41.19 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005251/0.4189, allocations: 65.7 kB / 468.1 MB, free: 41.18 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001188/0.4191, allocations: 41.7 kB / 468.2 MB, free: 41.18 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.169e-05/0.4191, allocations: 12.41 kB / 468.2 MB, free: 41.18 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005684/0.4197, allocations: 474.5 kB / 468.6 MB, free: 41.08 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4197, allocations: 0 / 468.6 MB, free: 41.08 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007936/0.4205, allocations: 193.4 kB / 468.8 MB, free: 41.08 MB / 382.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002109/0.4226, allocations: 1.752 MB / 470.6 MB, free: 40.07 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002021/0.4246, allocations: 1.026 MB / 471.6 MB, free: 39.79 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/0.4246, allocations: 0 / 471.6 MB, free: 39.79 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005774/0.4252, allocations: 310.8 kB / 471.9 MB, free: 39.71 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001166/0.4264, allocations: 180.4 kB / 472.1 MB, free: 39.65 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0106/0.437, allocations: 7.26 MB / 479.3 MB, free: 35.59 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005179/0.4376, allocations: 0.9498 MB / 480.3 MB, free: 34.88 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005628/0.4382, allocations: 146.9 kB / 480.4 MB, free: 34.87 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003627/0.4385, allocations: 256.8 kB / 480.7 MB, free: 34.68 MB / 382.1 MB Notification: Performance of SimCode: time 2.414e-06/0.4386, allocations: 4 kB / 480.7 MB, free: 34.68 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03209/0.4706, allocations: 13.58 MB / 494.3 MB, free: 33.69 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001833/0.4709, allocations: 211.4 kB / 494.5 MB, free: 33.42 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.072/2.543, allocations: 0 / 494.5 MB, free: 33.42 MB / 382.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Continuous_InitialState.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.Continuous_InitialState.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.Continuous_InitialState.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Continuous_InitialState.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.Continuous_InitialState_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_Continuous_InitialState_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_Continuous_InitialState.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.Continuous_InitialState.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.Continuous_InitialState_res.mat","/var/lib/jenkins1/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_ModelicaTest.Blocks.Continuous_InitialState.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches