Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.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.LimResetIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001362/0.001362, allocations: 108.9 kB / 17.33 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001702/0.001702, allocations: 209.8 kB / 18.27 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.377/1.377, allocations: 227.4 MB / 246.4 MB, free: 9.059 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2143/0.2143, allocations: 46.1 MB / 343.8 MB, free: 11.54 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001649/0.001649, allocations: 73.86 kB / 417.2 MB, free: 19.97 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1208/0.1224, allocations: 62.44 MB / 479.6 MB, free: 5.512 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.003642/0.1261, allocations: 1.696 MB / 481.3 MB, free: 3.801 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001326/0.1275, allocations: 0.5806 MB / 481.9 MB, free: 3.215 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001363/0.1276, allocations: 3.938 kB / 481.9 MB, free: 3.211 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001481/0.1278, allocations: 11.88 kB / 481.9 MB, free: 3.199 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.81e-05/0.1279, allocations: 7.922 kB / 481.9 MB, free: 3.191 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004373/0.1284, allocations: 79.84 kB / 482 MB, free: 3.113 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002023/0.1286, allocations: 103.8 kB / 482.1 MB, free: 3.012 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001386/0.1287, allocations: 32.2 kB / 482.1 MB, free: 2.98 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001371/0.1289, allocations: 47.83 kB / 482.1 MB, free: 2.934 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.432e-05/0.129, allocations: 43.7 kB / 482.2 MB, free: 2.891 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.014e-05/0.129, allocations: 8 kB / 482.2 MB, free: 2.883 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.926e-05/0.129, allocations: 12 kB / 482.2 MB, free: 2.871 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.641e-05/0.1291, allocations: 23.92 kB / 482.2 MB, free: 2.848 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.596e-05/0.1292, allocations: 35.8 kB / 482.3 MB, free: 2.812 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001896/0.1293, allocations: 87.64 kB / 482.4 MB, free: 2.727 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.1294, allocations: 0 / 482.4 MB, free: 2.727 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.1294, allocations: 0 / 482.4 MB, free: 2.727 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.604e-06/0.1294, allocations: 0 / 482.4 MB, free: 2.727 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0007446/0.1301, allocations: 415.2 kB / 482.8 MB, free: 2.273 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.798e-05/0.1302, allocations: 8.031 kB / 482.8 MB, free: 2.266 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.442e-05/0.1302, allocations: 42.73 kB / 482.8 MB, free: 2.215 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.378e-05/0.1303, allocations: 8.844 kB / 482.8 MB, free: 2.207 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003003/0.1306, allocations: 204 kB / 483 MB, free: 1.969 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.364e-05/0.1306, allocations: 8.375 kB / 483 MB, free: 1.961 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.078e-05/0.1307, allocations: 4.375 kB / 483 MB, free: 1.957 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002981/0.131, allocations: 109.7 kB / 483.1 MB, free: 1.844 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.676e-06/0.131, allocations: 0 / 483.1 MB, free: 1.844 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.169e-05/0.131, allocations: 11.97 kB / 483.1 MB, free: 1.832 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.623e-06/0.131, allocations: 7.938 kB / 483.2 MB, free: 1.824 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001674/0.1312, allocations: 43.97 kB / 483.2 MB, free: 1.781 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007897/0.132, allocations: 388.4 kB / 483.6 MB, free: 1.352 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003464/0.1324, allocations: 106.5 kB / 483.7 MB, free: 1.238 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001127/0.1325, allocations: 36.88 kB / 483.7 MB, free: 1.199 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.49e-05/0.1325, allocations: 0 / 483.7 MB, free: 1.199 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003127/0.1328, allocations: 99.36 kB / 483.8 MB, free: 1.09 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.653e-06/0.1328, allocations: 0 / 483.8 MB, free: 1.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004834/0.1333, allocations: 149.4 kB / 484 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.712e-05/0.1334, allocations: 55.41 kB / 484 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001507/0.1336, allocations: 153.8 kB / 484.2 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.122e-05/0.1336, allocations: 25.7 kB / 484.2 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.826e-05/0.1337, allocations: 104 kB / 484.3 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.247e-05/0.1337, allocations: 11.81 kB / 484.3 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.732e-05/0.1337, allocations: 25.72 kB / 484.3 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001283/0.1339, allocations: 318.8 kB / 484.6 MB, free: 216 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001267/0.134, allocations: 43.97 kB / 484.7 MB, free: 172 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001338/0.1342, allocations: 49.62 kB / 484.7 MB, free: 116 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002262/0.1344, allocations: 77.62 kB / 484.8 MB, free: 32 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.1344, allocations: 0 / 484.8 MB, free: 32 kB / 350.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000316/0.1347, allocations: 121.5 kB / 484.9 MB, free: 15.91 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.31e-05/0.1348, allocations: 11.94 kB / 484.9 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.142e-06/0.1348, allocations: 4.031 kB / 484.9 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.367e-05/0.1348, allocations: 0 / 484.9 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001037/0.1349, allocations: 19.98 kB / 485 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.921e-06/0.1349, allocations: 0 / 485 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.543e-05/0.135, allocations: 23.97 kB / 485 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.595e-06/0.135, allocations: 0 / 485 MB, free: 15.85 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,change.u,$PRE.change.u,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,integrator.reset,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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.911e-05/0.1351, allocations: 128.7 kB / 485.1 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.066e-05/0.1352, allocations: 15.84 kB / 485.1 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.06e-05/0.1352, allocations: 12.7 kB / 485.1 MB, free: 15.69 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.378e-05/0.1352, allocations: 4 kB / 485.1 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.111e-06/0.1352, allocations: 0 / 485.1 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.1352, allocations: 0 / 485.1 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005312/0.1358, allocations: 398.3 kB / 485.5 MB, free: 15.24 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.424e-06/0.1358, allocations: 0 / 485.5 MB, free: 15.24 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.834e-05/0.1359, allocations: 11.98 kB / 485.5 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/0.1359, allocations: 0 / 485.5 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.394e-05/0.1359, allocations: 4 kB / 485.5 MB, free: 15.22 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.116e-06/0.1359, allocations: 4 kB / 485.5 MB, free: 15.22 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.1359, allocations: 0 / 485.5 MB, free: 15.22 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004566/0.1364, allocations: 251.2 kB / 485.8 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.29e-05/0.1365, allocations: 89.03 kB / 485.9 MB, free: 14.85 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.315e-05/0.1365, allocations: 288 / 485.9 MB, free: 14.85 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001368/0.1366, allocations: 20.05 kB / 485.9 MB, free: 14.83 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.383e-05/0.1367, allocations: 15.97 kB / 485.9 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.705e-06/0.1367, allocations: 11.88 kB / 485.9 MB, free: 14.8 MB / 366.1 MB Notification: Performance of sorting global known variables: time 9.474e-05/0.1368, allocations: 114.6 kB / 486 MB, free: 14.7 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1368, allocations: 0 / 486 MB, free: 14.7 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002395/0.1371, allocations: 12 kB / 486.1 MB, free: 14.68 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (integrator.y) * Number of discrete variables: 5 (integrator.reset,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,change.u) * Number of discrete states: 1 (change.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0007134/0.1378, allocations: 0.7748 MB / 486.8 MB, free: 13.88 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002856/0.1381, allocations: 83.95 kB / 486.9 MB, free: 13.8 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.1381, allocations: 0 / 486.9 MB, free: 13.8 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001313/0.1382, allocations: 51.89 kB / 487 MB, free: 13.75 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003302/0.1386, allocations: 22.62 kB / 487 MB, free: 13.73 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002458/0.141, allocations: 1.722 MB / 488.7 MB, free: 11.92 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002566/0.1413, allocations: 0.6971 MB / 489.4 MB, free: 11.2 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5e-05/0.1414, allocations: 8.547 kB / 489.4 MB, free: 11.19 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.976e-05/0.1414, allocations: 35.44 kB / 489.4 MB, free: 11.16 MB / 366.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1415, allocations: 0 / 489.4 MB, free: 11.16 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01446/0.1559, allocations: 2.366 MB / 491.8 MB, free: 8.891 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000226/0.1562, allocations: 209.7 kB / 492 MB, free: 8.621 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.83/1.986, allocations: 0 / 492 MB, free: 8.621 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_LimResetIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_LimResetIntegrator.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches