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.0007964/0.0007964, allocations: 94.47 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001035/0.001035, allocations: 200.9 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.389/1.389, allocations: 227.7 MB / 246.8 MB, free: 9.695 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2144/0.2144, allocations: 46.18 MB / 345.2 MB, free: 11.17 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002759/0.0002759, allocations: 8 kB / 419.6 MB, free: 19.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1162/0.1165, allocations: 63.56 MB / 483.2 MB, free: 4.051 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.002462/0.119, allocations: 1.345 MB / 484.5 MB, free: 2.695 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001146/0.1202, allocations: 0.4988 MB / 485 MB, free: 2.191 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001051/0.1203, allocations: 4 kB / 485 MB, free: 2.188 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001228/0.1204, allocations: 3.938 kB / 485 MB, free: 2.184 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.652e-05/0.1205, allocations: 7.938 kB / 485 MB, free: 2.176 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002322/0.1207, allocations: 39.83 kB / 485.1 MB, free: 2.137 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001483/0.1209, allocations: 67.84 kB / 485.1 MB, free: 2.07 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001416/0.1211, allocations: 24.22 kB / 485.2 MB, free: 2.043 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.915e-05/0.1211, allocations: 23.86 kB / 485.2 MB, free: 2.02 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.558e-05/0.1212, allocations: 23.86 kB / 485.2 MB, free: 1.996 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.082e-05/0.1212, allocations: 8 kB / 485.2 MB, free: 1.988 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.248e-05/0.1213, allocations: 0 / 485.2 MB, free: 1.988 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.203e-05/0.1213, allocations: 19.91 kB / 485.2 MB, free: 1.969 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.313e-05/0.1214, allocations: 53.5 kB / 485.3 MB, free: 1.91 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001258/0.1215, allocations: 63.94 kB / 485.3 MB, free: 1.848 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.1215, allocations: 0 / 485.3 MB, free: 1.848 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.545e-06/0.1215, allocations: 7.938 kB / 485.4 MB, free: 1.84 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.629e-06/0.1215, allocations: 0 / 485.4 MB, free: 1.84 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.000603/0.1221, allocations: 379.3 kB / 485.7 MB, free: 1.422 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.737e-05/0.1222, allocations: 12.88 kB / 485.7 MB, free: 1.41 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.113e-05/0.1223, allocations: 34.75 kB / 485.8 MB, free: 1.367 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.953e-05/0.1223, allocations: 16.84 kB / 485.8 MB, free: 1.352 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001938/0.1225, allocations: 188.2 kB / 486 MB, free: 1.129 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.625e-05/0.1225, allocations: 8.375 kB / 486 MB, free: 1.121 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.04e-05/0.1226, allocations: 4.375 kB / 486 MB, free: 1.117 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000142/0.1227, allocations: 85.73 kB / 486.1 MB, free: 1.027 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.143e-06/0.1227, allocations: 0 / 486.1 MB, free: 1.027 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.044e-05/0.1227, allocations: 4 kB / 486.1 MB, free: 1.023 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.461e-06/0.1227, allocations: 0 / 486.1 MB, free: 1.023 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.273e-05/0.1228, allocations: 39.97 kB / 486.1 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006145/0.1234, allocations: 356.4 kB / 486.5 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001079/0.1236, allocations: 54.56 kB / 486.5 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.917e-05/0.1236, allocations: 12.94 kB / 486.5 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.355e-05/0.1236, allocations: 7.984 kB / 486.5 MB, free: 0.5 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001571/0.1238, allocations: 71.31 kB / 486.6 MB, free: 428 kB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.403e-06/0.1238, allocations: 0 / 486.6 MB, free: 428 kB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002459/0.1241, allocations: 85.77 kB / 486.7 MB, free: 336 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.332e-05/0.1241, allocations: 55.41 kB / 486.7 MB, free: 268 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001314/0.1243, allocations: 144.1 kB / 486.9 MB, free: 116 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.949e-05/0.1243, allocations: 29.64 kB / 486.9 MB, free: 80 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.315e-05/0.1244, allocations: 100 kB / 487 MB, free: 15.98 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.147e-05/0.1244, allocations: 23.88 kB / 487 MB, free: 15.95 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.668e-05/0.1245, allocations: 25.64 kB / 487.1 MB, free: 15.92 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000129/0.1246, allocations: 322.8 kB / 487.4 MB, free: 15.6 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.287e-05/0.1247, allocations: 15.94 kB / 487.4 MB, free: 15.58 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.288e-05/0.1247, allocations: 42.56 kB / 487.4 MB, free: 15.53 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.064e-05/0.1248, allocations: 46.64 kB / 487.5 MB, free: 15.48 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.1248, allocations: 3.938 kB / 487.5 MB, free: 15.47 MB / 366.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001503/0.125, allocations: 89.53 kB / 487.6 MB, free: 15.38 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/0.125, allocations: 4 kB / 487.6 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.158e-06/0.125, allocations: 11.98 kB / 487.6 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.349e-05/0.1251, allocations: 4 kB / 487.6 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.813e-05/0.1251, allocations: 4 kB / 487.6 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.223e-06/0.1251, allocations: 4 kB / 487.6 MB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.677e-05/0.1252, allocations: 4 kB / 487.6 MB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.612e-05/0.1252, allocations: 7.984 kB / 487.6 MB, free: 15.34 MB / 366.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 9.198e-05/0.1253, allocations: 113.8 kB / 487.7 MB, free: 15.22 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.054e-05/0.1254, allocations: 11.91 kB / 487.7 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.511e-05/0.1254, allocations: 20.66 kB / 487.7 MB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.147e-06/0.1254, allocations: 0 / 487.7 MB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.1254, allocations: 3.938 kB / 487.7 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.996e-06/0.1254, allocations: 0 / 487.7 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003477/0.1258, allocations: 350.3 kB / 488.1 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-06/0.1258, allocations: 0 / 488.1 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.097e-05/0.1259, allocations: 11.98 kB / 488.1 MB, free: 14.77 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.105e-06/0.1259, allocations: 0 / 488.1 MB, free: 14.77 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.336e-06/0.1259, allocations: 0 / 488.1 MB, free: 14.77 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.796e-06/0.1259, allocations: 4 kB / 488.1 MB, free: 14.77 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.1259, allocations: 3.938 kB / 488.1 MB, free: 14.77 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002239/0.1261, allocations: 195.4 kB / 488.3 MB, free: 14.56 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.983e-05/0.1262, allocations: 85.05 kB / 488.4 MB, free: 14.46 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.918e-05/0.1262, allocations: 4 kB / 488.4 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.894e-05/0.1263, allocations: 7.984 kB / 488.4 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.835e-05/0.1263, allocations: 11.98 kB / 488.4 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.726e-06/0.1264, allocations: 8.062 kB / 488.4 MB, free: 14.43 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.405e-05/0.1264, allocations: 109.7 kB / 488.5 MB, free: 14.32 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1264, allocations: 0 / 488.5 MB, free: 14.32 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002306/0.1267, allocations: 12 kB / 488.5 MB, free: 14.31 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.0004969/0.1272, allocations: 0.7203 MB / 489.3 MB, free: 13.56 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001322/0.1273, allocations: 52.3 kB / 489.3 MB, free: 13.51 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/0.1274, allocations: 4 kB / 489.3 MB, free: 13.51 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.993e-05/0.1274, allocations: 20.14 kB / 489.3 MB, free: 13.49 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003173/0.1277, allocations: 15.98 kB / 489.3 MB, free: 13.47 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001539/0.1293, allocations: 1.536 MB / 490.9 MB, free: 11.85 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002738/0.1296, allocations: 0.701 MB / 491.6 MB, free: 11.12 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.07e-05/0.1296, allocations: 8.422 kB / 491.6 MB, free: 11.12 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.02e-05/0.1297, allocations: 23.44 kB / 491.6 MB, free: 11.09 MB / 366.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1297, allocations: 0 / 491.6 MB, free: 11.09 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01127/0.141, allocations: 1.903 MB / 493.5 MB, free: 9.297 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001867/0.1412, allocations: 197.4 kB / 493.7 MB, free: 9.035 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.711/1.852, allocations: 7.938 kB / 493.7 MB, free: 9.027 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