Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.IntegratorForceState.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.IntegratorForceState,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_IntegratorForceState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.IntegratorForceState,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_IntegratorForceState",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0006867/0.0006867, allocations: 93.22 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008347/0.0008347, allocations: 203.6 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.348/1.348, allocations: 227.7 MB / 246.8 MB, free: 11.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1908/0.1908, allocations: 46.19 MB / 345.2 MB, free: 11.39 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002375/0.0002374, allocations: 11.98 kB / 419.6 MB, free: 19.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1149/0.1151, allocations: 63.57 MB / 483.2 MB, free: 4.082 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.IntegratorForceState): time 0.001729/0.1169, allocations: 1.289 MB / 484.5 MB, free: 2.785 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002154/0.1171, allocations: 71.78 kB / 484.5 MB, free: 2.715 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.015e-05/0.1172, allocations: 4 kB / 484.5 MB, free: 2.711 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001026/0.1173, allocations: 3.938 kB / 484.5 MB, free: 2.707 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.13e-05/0.1174, allocations: 7.922 kB / 484.5 MB, free: 2.699 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000129/0.1175, allocations: 12 kB / 484.6 MB, free: 2.688 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.422e-05/0.1176, allocations: 39.89 kB / 484.6 MB, free: 2.648 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.417e-05/0.1177, allocations: 11.94 kB / 484.6 MB, free: 2.637 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.161e-05/0.1177, allocations: 4 kB / 484.6 MB, free: 2.633 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.356e-05/0.1178, allocations: 23.8 kB / 484.6 MB, free: 2.609 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.263e-05/0.1178, allocations: 0 / 484.6 MB, free: 2.609 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.015e-05/0.1178, allocations: 0 / 484.6 MB, free: 2.609 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.673e-05/0.1179, allocations: 8 kB / 484.6 MB, free: 2.602 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003274/0.1182, allocations: 41.58 kB / 484.7 MB, free: 2.555 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 8.762e-05/0.1183, allocations: 24.16 kB / 484.7 MB, free: 2.531 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.278e-06/0.1183, allocations: 4 kB / 484.7 MB, free: 2.527 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.1183, allocations: 0 / 484.7 MB, free: 2.527 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.707e-06/0.1183, allocations: 0 / 484.7 MB, free: 2.527 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005486/0.1189, allocations: 347.4 kB / 485.1 MB, free: 2.137 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.276e-05/0.1189, allocations: 12.88 kB / 485.1 MB, free: 2.125 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002229/0.1192, allocations: 34.75 kB / 485.1 MB, free: 2.082 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.792e-05/0.1192, allocations: 4.844 kB / 485.1 MB, free: 2.078 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000167/0.1194, allocations: 180.2 kB / 485.3 MB, free: 1.863 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.216e-05/0.1194, allocations: 4.375 kB / 485.3 MB, free: 1.859 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.956e-05/0.1194, allocations: 4.375 kB / 485.3 MB, free: 1.855 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003617/0.1198, allocations: 76.81 kB / 485.4 MB, free: 1.766 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.636e-06/0.1198, allocations: 3.938 kB / 485.4 MB, free: 1.762 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.878e-06/0.1198, allocations: 0 / 485.4 MB, free: 1.762 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.969e-06/0.1198, allocations: 3.938 kB / 485.4 MB, free: 1.758 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.525e-05/0.1199, allocations: 31.92 kB / 485.4 MB, free: 1.727 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004679/0.1204, allocations: 457.1 kB / 485.8 MB, free: 1.223 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000152/0.1205, allocations: 46.56 kB / 485.9 MB, free: 1.168 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.28e-05/0.1206, allocations: 16.86 kB / 485.9 MB, free: 1.148 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.365e-05/0.1206, allocations: 0 / 485.9 MB, free: 1.148 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003257/0.121, allocations: 34.56 kB / 485.9 MB, free: 1.105 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 8.41e-07/0.121, allocations: 0 / 485.9 MB, free: 1.105 MB / 350.1 MB Notification: Performance of matching and sorting (n=4): time 0.0004486/0.1214, allocations: 121.5 kB / 486.1 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.398e-05/0.1215, allocations: 51.41 kB / 486.1 MB, free: 0.918 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.277e-05/0.1216, allocations: 113.8 kB / 486.2 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.333e-05/0.1216, allocations: 25.7 kB / 486.2 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.389e-05/0.1216, allocations: 99.97 kB / 486.3 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.166e-05/0.1217, allocations: 8.188 kB / 486.4 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.623e-05/0.1217, allocations: 17.72 kB / 486.4 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001094/0.1218, allocations: 318.8 kB / 486.7 MB, free: 320 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.327e-05/0.1219, allocations: 27.92 kB / 486.7 MB, free: 292 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.773e-05/0.1219, allocations: 43.36 kB / 486.8 MB, free: 236 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001197/0.1221, allocations: 67.69 kB / 486.8 MB, free: 156 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.62e-07/0.1221, allocations: 0 / 486.8 MB, free: 156 kB / 350.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001544/0.1222, allocations: 85.66 kB / 486.9 MB, free: 64 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.258e-05/0.1223, allocations: 4 kB / 486.9 MB, free: 60 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/0.1223, allocations: 7.984 kB / 486.9 MB, free: 52 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.139e-05/0.1223, allocations: 0 / 486.9 MB, free: 52 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.112e-05/0.1224, allocations: 20.08 kB / 486.9 MB, free: 32 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.352e-06/0.1224, allocations: 160 / 486.9 MB, free: 32 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.099e-05/0.1224, allocations: 4 kB / 486.9 MB, free: 28 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.265e-06/0.1224, allocations: 11.92 kB / 486.9 MB, free: 16 kB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 1 (integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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 9.466e-05/0.1225, allocations: 113.8 kB / 487.1 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.45e-05/0.1226, allocations: 7.906 kB / 487.1 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.374e-05/0.1226, allocations: 7.906 kB / 487.1 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.426e-06/0.1226, allocations: 4 kB / 487.1 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.1226, allocations: 4 kB / 487.1 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.087e-06/0.1226, allocations: 3.984 kB / 487.1 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002406/0.1229, allocations: 169.6 kB / 487.3 MB, free: 15.65 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.1229, allocations: 3.938 kB / 487.3 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.243e-05/0.1229, allocations: 12 kB / 487.3 MB, free: 15.63 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.123, allocations: 0 / 487.3 MB, free: 15.63 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.073e-06/0.123, allocations: 0 / 487.3 MB, free: 15.63 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.123, allocations: 0 / 487.3 MB, free: 15.63 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.123, allocations: 0 / 487.3 MB, free: 15.63 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002728/0.1233, allocations: 195.4 kB / 487.5 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.557e-05/0.1233, allocations: 85.05 kB / 487.5 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.376e-05/0.1233, allocations: 0 / 487.5 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.237e-05/0.1234, allocations: 7.984 kB / 487.6 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.115e-05/0.1234, allocations: 0 / 487.6 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.945e-06/0.1234, allocations: 0 / 487.6 MB, free: 15.32 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.722e-05/0.1235, allocations: 95.33 kB / 487.6 MB, free: 15.22 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1235, allocations: 0 / 487.6 MB, free: 15.22 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002196/0.1237, allocations: 11.94 kB / 487.7 MB, free: 15.21 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (gain.y) * 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 (4): * Single equations (assignments): 4 * 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.00072/0.1244, allocations: 0.7165 MB / 488.4 MB, free: 14.47 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001401/0.1246, allocations: 39.98 kB / 488.4 MB, free: 14.43 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.1246, allocations: 0 / 488.4 MB, free: 14.43 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.957e-05/0.1246, allocations: 23.92 kB / 488.4 MB, free: 14.41 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002719/0.1249, allocations: 4 kB / 488.4 MB, free: 14.4 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001523/0.1265, allocations: 1.396 MB / 489.8 MB, free: 12.91 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003041/0.1268, allocations: 0.6848 MB / 490.5 MB, free: 12.2 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.465e-05/0.1268, allocations: 4 kB / 490.5 MB, free: 12.19 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.521e-05/0.1269, allocations: 19.44 kB / 490.5 MB, free: 12.17 MB / 366.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1269, allocations: 0 / 490.5 MB, free: 12.17 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01165/0.1385, allocations: 1.285 MB / 491.8 MB, free: 10.99 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000251/0.1388, allocations: 190.2 kB / 492 MB, free: 10.74 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.771/1.91, allocations: 8 kB / 492 MB, free: 10.73 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.IntegratorForceState.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.IntegratorForceState.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.IntegratorForceState.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.IntegratorForceState.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.IntegratorForceState_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_IntegratorForceState_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_IntegratorForceState.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.IntegratorForceState.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.IntegratorForceState_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/IntegratorForceState/IntegratorForceState.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.IntegratorForceState.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches