Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.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.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001176/0.001176, 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.001232/0.001233, 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.397/1.397, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2042/0.2042, allocations: 46.1 MB / 344.1 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001368/0.001368, allocations: 73.19 kB / 417.7 MB, free: 19.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.119/0.1204, allocations: 62.44 MB / 480.1 MB, free: 5.184 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.003098/0.1236, allocations: 1.626 MB / 481.7 MB, free: 3.551 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008799/0.1245, allocations: 0.5065 MB / 482.3 MB, free: 3.039 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.902e-05/0.1246, allocations: 3.938 kB / 482.3 MB, free: 3.035 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001105/0.1247, allocations: 11.88 kB / 482.3 MB, free: 3.023 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.679e-05/0.1248, allocations: 15.91 kB / 482.3 MB, free: 3.008 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001764/0.1249, allocations: 43.78 kB / 482.3 MB, free: 2.965 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001307/0.1251, allocations: 67.84 kB / 482.4 MB, free: 2.898 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001268/0.1252, allocations: 36.2 kB / 482.4 MB, free: 2.859 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.559e-05/0.1253, allocations: 27.86 kB / 482.5 MB, free: 2.832 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.011e-05/0.1253, allocations: 31.84 kB / 482.5 MB, free: 2.801 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.226e-05/0.1254, allocations: 8 kB / 482.5 MB, free: 2.793 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.738e-05/0.1254, allocations: 8 kB / 482.5 MB, free: 2.785 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.612e-05/0.1254, allocations: 23.86 kB / 482.5 MB, free: 2.762 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.625e-05/0.1255, allocations: 31.81 kB / 482.6 MB, free: 2.73 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001165/0.1256, allocations: 71.94 kB / 482.6 MB, free: 2.66 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.1256, allocations: 0 / 482.6 MB, free: 2.66 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.1256, allocations: 0 / 482.6 MB, free: 2.66 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.514e-06/0.1256, allocations: 0 / 482.6 MB, free: 2.66 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0005323/0.1262, allocations: 395.1 kB / 483 MB, free: 2.227 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.34e-05/0.1262, allocations: 12.03 kB / 483 MB, free: 2.215 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.038e-05/0.1263, allocations: 42.73 kB / 483.1 MB, free: 2.164 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.419e-05/0.1263, allocations: 8.844 kB / 483.1 MB, free: 2.156 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002592/0.1266, allocations: 188.2 kB / 483.3 MB, free: 1.934 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.433e-05/0.1266, allocations: 8.375 kB / 483.3 MB, free: 1.926 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.473e-05/0.1266, allocations: 4.375 kB / 483.3 MB, free: 1.922 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000154/0.1268, allocations: 85.72 kB / 483.4 MB, free: 1.832 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.095e-06/0.1268, allocations: 0 / 483.4 MB, free: 1.832 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.171e-05/0.1268, allocations: 4 kB / 483.4 MB, free: 1.828 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.731e-06/0.1268, allocations: 4 kB / 483.4 MB, free: 1.824 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.935e-05/0.1269, allocations: 31.98 kB / 483.4 MB, free: 1.793 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005789/0.1275, allocations: 356.4 kB / 483.7 MB, free: 1.395 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001018/0.1276, allocations: 50.55 kB / 483.8 MB, free: 1.336 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.376e-05/0.1276, allocations: 16.89 kB / 483.8 MB, free: 1.316 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.043e-05/0.1277, allocations: 7.938 kB / 483.8 MB, free: 1.309 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001487/0.1278, allocations: 67.38 kB / 483.9 MB, free: 1.23 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.513e-06/0.1278, allocations: 0 / 483.9 MB, free: 1.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002153/0.128, allocations: 89.52 kB / 484 MB, free: 1.137 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.841e-05/0.1281, allocations: 55.39 kB / 484 MB, free: 1.07 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001144/0.1282, allocations: 140 kB / 484.2 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.546e-05/0.1282, allocations: 29.7 kB / 484.2 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.245e-05/0.1283, allocations: 96.05 kB / 484.3 MB, free: 0.793 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.298e-05/0.1283, allocations: 23.88 kB / 484.3 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.065e-05/0.1284, allocations: 25.72 kB / 484.3 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001107/0.1285, allocations: 326.8 kB / 484.6 MB, free: 420 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.971e-05/0.1285, allocations: 19.92 kB / 484.7 MB, free: 400 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.851e-05/0.1286, allocations: 34.58 kB / 484.7 MB, free: 356 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.216e-05/0.1287, allocations: 50.56 kB / 484.8 MB, free: 296 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.1287, allocations: 0 / 484.8 MB, free: 296 kB / 350.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001261/0.1288, allocations: 93.95 kB / 484.8 MB, free: 196 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.185e-05/0.1288, allocations: 4 kB / 484.8 MB, free: 192 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-06/0.1288, allocations: 7.875 kB / 484.9 MB, free: 184 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.494e-05/0.1289, allocations: 8 kB / 484.9 MB, free: 176 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.264e-05/0.1289, allocations: 8.062 kB / 484.9 MB, free: 168 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.466e-06/0.1289, allocations: 12.06 kB / 484.9 MB, free: 156 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.485e-05/0.129, allocations: 11.89 kB / 484.9 MB, free: 144 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.901e-06/0.129, allocations: 0 / 484.9 MB, free: 144 kB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,fallingEdge.not_u,$PRE.fallingEdge.not_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 8.256e-05/0.1291, allocations: 120.8 kB / 485 MB, free: 16 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.484e-05/0.1291, allocations: 7.906 kB / 485 MB, free: 8 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.21e-05/0.1292, allocations: 16.7 kB / 485 MB, free: 15.99 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.383e-06/0.1292, allocations: 0 / 485 MB, free: 15.99 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.1292, allocations: 4 kB / 485 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.1292, allocations: 7.938 kB / 485 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002976/0.1295, allocations: 346.4 kB / 485.4 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.1295, allocations: 0 / 485.4 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.503e-05/0.1296, allocations: 4 kB / 485.4 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.1296, allocations: 0 / 485.4 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.171e-05/0.1296, allocations: 8 kB / 485.4 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.1296, allocations: 0 / 485.4 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.1296, allocations: 3.938 kB / 485.4 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001954/0.1298, allocations: 195.3 kB / 485.6 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.95e-05/0.1299, allocations: 85.05 kB / 485.7 MB, free: 15.26 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.912e-05/0.1299, allocations: 3.984 kB / 485.7 MB, free: 15.26 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.636e-05/0.13, allocations: 4 kB / 485.7 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.346e-05/0.13, allocations: 11.98 kB / 485.7 MB, free: 15.24 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.442e-06/0.13, allocations: 4 kB / 485.7 MB, free: 15.24 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.126e-05/0.1301, allocations: 105.5 kB / 485.8 MB, free: 15.14 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1301, allocations: 0 / 485.8 MB, free: 15.14 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002239/0.1303, allocations: 11.97 kB / 485.8 MB, free: 15.12 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,fallingEdge.not_u) * Number of discrete states: 1 (fallingEdge.not_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.0004127/0.1308, allocations: 0.7318 MB / 486.5 MB, free: 14.37 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001341/0.1309, allocations: 51.92 kB / 486.6 MB, free: 14.32 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.1309, allocations: 0 / 486.6 MB, free: 14.32 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.671e-05/0.131, allocations: 16 kB / 486.6 MB, free: 14.3 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002849/0.1313, allocations: 24.11 kB / 486.6 MB, free: 14.28 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00136/0.1326, allocations: 1.51 MB / 488.1 MB, free: 12.68 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002415/0.1329, allocations: 0.6924 MB / 488.8 MB, free: 11.96 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.6e-05/0.1329, allocations: 12.41 kB / 488.8 MB, free: 11.95 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.345e-05/0.133, allocations: 27.42 kB / 488.9 MB, free: 11.92 MB / 366.1 MB Notification: Performance of SimCode: time 3.51e-07/0.133, allocations: 0 / 488.9 MB, free: 11.92 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0182/0.1512, allocations: 2.181 MB / 491.1 MB, free: 9.793 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.219/7.37, allocations: 13.02 kB / 491.1 MB, free: 9.781 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_ResetHoldIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_ResetHoldIntegrator.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches