Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.Continuous_InitialState.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.Continuous_InitialState,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_Continuous_InitialState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Continuous_InitialState,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_Continuous_InitialState",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001213/0.001213, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001585/0.001585, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.422/1.422, allocations: 227.4 MB / 246.8 MB, free: 10.53 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.231/0.231, allocations: 46.11 MB / 344.1 MB, free: 11.58 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001342/0.001342, allocations: 80.03 kB / 417.7 MB, free: 19.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1201/0.1214, allocations: 62.44 MB / 480.1 MB, free: 5.176 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Continuous_InitialState): time 0.005231/0.1267, allocations: 3.371 MB / 483.5 MB, free: 1.789 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003102/0.1298, allocations: 1.591 MB / 485.1 MB, free: 196 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003763/0.1302, allocations: 27.88 kB / 485.1 MB, free: 168 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005602/0.1308, allocations: 138.7 kB / 485.2 MB, free: 28 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004395/0.1313, allocations: 190.7 kB / 485.4 MB, free: 15.84 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001212/0.1325, allocations: 0.5453 MB / 486 MB, free: 15.29 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001014/0.1335, allocations: 0.9045 MB / 486.9 MB, free: 14.39 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003974/0.1339, allocations: 222.4 kB / 487.1 MB, free: 14.16 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004699/0.1344, allocations: 362.5 kB / 487.5 MB, free: 13.8 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004876/0.1349, allocations: 398.1 kB / 487.8 MB, free: 13.41 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001128/0.135, allocations: 64 kB / 487.9 MB, free: 13.35 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001389/0.1352, allocations: 68 kB / 488 MB, free: 13.29 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002237/0.1354, allocations: 203.2 kB / 488.2 MB, free: 13.09 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003094/0.1357, allocations: 337.9 kB / 488.5 MB, free: 12.75 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007595/0.1365, allocations: 0.7512 MB / 489.3 MB, free: 12 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.1365, allocations: 0 / 489.3 MB, free: 12 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1365, allocations: 4 kB / 489.3 MB, free: 12 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.12e-05/0.1365, allocations: 0 / 489.3 MB, free: 12 MB / 366.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.002247/0.1388, allocations: 1.168 MB / 490.4 MB, free: 10.78 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.587e-05/0.1388, allocations: 9.109 kB / 490.4 MB, free: 10.77 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.093e-05/0.1389, allocations: 82.72 kB / 490.5 MB, free: 10.68 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002395/0.1392, allocations: 99.8 kB / 490.6 MB, free: 10.58 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007908/0.14, allocations: 0.5507 MB / 491.2 MB, free: 9.992 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.198e-05/0.14, allocations: 41.38 kB / 491.2 MB, free: 9.953 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.821e-05/0.1401, allocations: 60.27 kB / 491.3 MB, free: 9.895 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001034/0.1411, allocations: 0.6222 MB / 491.9 MB, free: 9.219 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.11e-05/0.1412, allocations: 4 kB / 491.9 MB, free: 9.215 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.017e-05/0.1412, allocations: 20 kB / 491.9 MB, free: 9.195 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.31e-05/0.1413, allocations: 16 kB / 491.9 MB, free: 9.18 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00104/0.1423, allocations: 457.8 kB / 492.4 MB, free: 8.73 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003428/0.1457, allocations: 2.663 MB / 495 MB, free: 5.969 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001127/0.1469, allocations: 0.5467 MB / 495.6 MB, free: 5.395 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000564/0.1475, allocations: 250.4 kB / 495.8 MB, free: 5.141 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.438e-05/0.1475, allocations: 7.938 kB / 495.8 MB, free: 5.133 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.688e-05/0.1476, allocations: 46.58 kB / 495.9 MB, free: 5.078 MB / 366.1 MB Notification: Performance of pre-optimization done (n=43): time 2.254e-06/0.1476, allocations: 4 kB / 495.9 MB, free: 5.074 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.002626/0.1502, allocations: 1.128 MB / 497 MB, free: 3.934 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.939e-05/0.1503, allocations: 162.2 kB / 497.2 MB, free: 3.738 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000838/0.1512, allocations: 0.6645 MB / 497.8 MB, free: 3.062 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.238e-05/0.1512, allocations: 33.7 kB / 497.9 MB, free: 3.023 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002913/0.1515, allocations: 360 kB / 498.2 MB, free: 2.664 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000168/0.1517, allocations: 169.5 kB / 498.4 MB, free: 2.496 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00021/0.1519, allocations: 118.2 kB / 498.5 MB, free: 2.375 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001472/0.1521, allocations: 337.9 kB / 498.8 MB, free: 2.039 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006493/0.1527, allocations: 271.3 kB / 499.1 MB, free: 1.77 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007325/0.1535, allocations: 429.5 kB / 499.5 MB, free: 1.281 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001307/0.1548, allocations: 0.6779 MB / 0.4885 GB, free: 0.5469 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.1548, allocations: 0 / 0.4885 GB, free: 0.5469 MB / 366.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.001628/0.1564, allocations: 0.7948 MB / 0.4892 GB, free: 15.75 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.235e-05/0.1564, allocations: 8 kB / 0.4892 GB, free: 15.74 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.222e-05/0.1565, allocations: 4 kB / 0.4893 GB, free: 15.73 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.52e-05/0.1565, allocations: 8 kB / 0.4893 GB, free: 15.73 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006876/0.1572, allocations: 151.7 kB / 0.4894 GB, free: 15.58 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.787e-05/0.1572, allocations: 16.3 kB / 0.4894 GB, free: 15.56 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000519/0.1577, allocations: 83.62 kB / 0.4895 GB, free: 15.48 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.226e-05/0.1578, allocations: 23.94 kB / 0.4895 GB, free: 15.46 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007548/0.1586, allocations: 413.3 kB / 0.4899 GB, free: 15.05 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006508/0.1592, allocations: 417.2 kB / 0.4903 GB, free: 14.57 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001172/0.1604, allocations: 0.6546 MB / 0.491 GB, free: 13.86 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.214e-06/0.1604, allocations: 4 kB / 0.491 GB, free: 13.86 MB / 382.1 MB Notification: Performance of matching and sorting (n=77) (initialization_lambda0): time 0.001514/0.1619, allocations: 0.7723 MB / 0.4917 GB, free: 13.08 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.295e-05/0.162, allocations: 10.64 kB / 0.4917 GB, free: 13.07 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/0.162, allocations: 4 kB / 0.4917 GB, free: 13.07 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.848e-06/0.162, allocations: 8 kB / 0.4917 GB, free: 13.06 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006099/0.1626, allocations: 148.3 kB / 0.4919 GB, free: 12.91 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.629e-05/0.1626, allocations: 15.86 kB / 0.4919 GB, free: 12.9 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005132/0.1632, allocations: 79.53 kB / 0.492 GB, free: 12.82 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.457e-05/0.1632, allocations: 24 kB / 0.492 GB, free: 12.8 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.0001958/0.1634, allocations: 216.1 kB / 0.4922 GB, free: 12.58 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001566/0.1636, allocations: 83 kB / 0.4923 GB, free: 12.5 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002037/0.1638, allocations: 90.2 kB / 0.4924 GB, free: 12.41 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.656e-06/0.1638, allocations: 11.94 kB / 0.4924 GB, free: 12.39 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.355e-06/0.1638, allocations: 0 / 0.4924 GB, free: 12.39 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.002e-06/0.1638, allocations: 0 / 0.4924 GB, free: 12.39 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001363/0.1652, allocations: 0.8493 MB / 0.4932 GB, free: 11.49 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.521e-06/0.1652, allocations: 3.938 kB / 0.4932 GB, free: 11.48 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006302/0.1658, allocations: 107.9 kB / 0.4933 GB, free: 11.38 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.496e-06/0.1659, allocations: 4 kB / 0.4933 GB, free: 11.38 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.73e-05/0.1659, allocations: 12 kB / 0.4933 GB, free: 11.36 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.559e-06/0.1659, allocations: 4 kB / 0.4933 GB, free: 11.36 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.1659, allocations: 0 / 0.4933 GB, free: 11.36 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002002/0.1679, allocations: 1.133 MB / 0.4944 GB, free: 10.2 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002329/0.1682, allocations: 200.1 kB / 0.4946 GB, free: 9.988 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.906e-05/0.1683, allocations: 16 kB / 0.4946 GB, free: 9.973 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005531/0.1689, allocations: 47.94 kB / 0.4947 GB, free: 9.926 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001184/0.169, allocations: 39.95 kB / 0.4947 GB, free: 9.887 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.173e-05/0.169, allocations: 15.98 kB / 0.4947 GB, free: 9.871 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006686/0.1697, allocations: 455 kB / 0.4952 GB, free: 9.43 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1697, allocations: 0 / 0.4952 GB, free: 9.43 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007588/0.1705, allocations: 196 kB / 0.4954 GB, free: 9.238 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.002236/0.1727, allocations: 1.695 MB / 0.497 GB, free: 7.516 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002173/0.1749, allocations: 1.002 MB / 0.498 GB, free: 6.516 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.995e-06/0.1749, allocations: 0 / 0.498 GB, free: 6.516 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006175/0.1755, allocations: 275.9 kB / 0.4983 GB, free: 6.246 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001059/0.1766, allocations: 193 kB / 0.4984 GB, free: 6.066 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1964/0.373, allocations: 6.871 MB / 0.5052 GB, free: 40.23 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005018/0.3736, allocations: 0.9474 MB / 0.5061 GB, free: 39.54 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007148/0.3743, allocations: 153 kB / 0.5062 GB, free: 39.53 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003762/0.3747, allocations: 265.1 kB / 0.5065 GB, free: 39.52 MB / 382.1 MB Notification: Performance of SimCode: time 8.22e-07/0.3747, allocations: 1.312 kB / 0.5065 GB, free: 39.52 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03763/0.4123, allocations: 14.32 MB / 0.5205 GB, free: 35.59 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.532/7.945, allocations: 15.61 kB / 0.5205 GB, free: 35.58 MB / 382.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.Continuous_InitialState.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.Continuous_InitialState.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.Continuous_InitialState.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.Continuous_InitialState.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.Continuous_InitialState_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_Continuous_InitialState_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_Continuous_InitialState.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.Continuous_InitialState.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.Continuous_InitialState.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches