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.001044/0.001045, allocations: 104.1 kB / 17.32 MB, free: 5.98 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001091/0.001091, allocations: 209.8 kB / 18.26 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.362/1.362, allocations: 227.4 MB / 246.4 MB, free: 10.79 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2252/0.2252, allocations: 46.09 MB / 343.8 MB, free: 11.78 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001391/0.001391, allocations: 75.97 kB / 417.1 MB, free: 20 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1201/0.1215, allocations: 62.44 MB / 479.6 MB, free: 5.539 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.003272/0.1248, allocations: 1.684 MB / 481.3 MB, free: 3.84 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001036/0.1259, allocations: 0.5065 MB / 481.8 MB, free: 3.328 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001164/0.126, allocations: 4 kB / 481.8 MB, free: 3.324 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001356/0.1262, allocations: 3.938 kB / 481.8 MB, free: 3.32 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.948e-05/0.1263, allocations: 7.875 kB / 481.8 MB, free: 3.312 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002126/0.1265, allocations: 31.97 kB / 481.8 MB, free: 3.281 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001544/0.1267, allocations: 79.77 kB / 481.9 MB, free: 3.203 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001389/0.1268, allocations: 32.22 kB / 481.9 MB, free: 3.168 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.968e-05/0.1269, allocations: 27.86 kB / 482 MB, free: 3.141 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.647e-05/0.127, allocations: 31.84 kB / 482 MB, free: 3.109 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.842e-05/0.127, allocations: 4 kB / 482 MB, free: 3.105 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.399e-05/0.127, allocations: 8 kB / 482 MB, free: 3.098 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.944e-05/0.1271, allocations: 15.94 kB / 482 MB, free: 3.082 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.064e-05/0.1271, allocations: 35.78 kB / 482.1 MB, free: 3.047 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001436/0.1273, allocations: 71.95 kB / 482.1 MB, free: 2.977 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.113e-06/0.1273, allocations: 0 / 482.1 MB, free: 2.977 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1273, allocations: 0 / 482.1 MB, free: 2.977 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.758e-06/0.1273, allocations: 0 / 482.1 MB, free: 2.977 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.0006049/0.1279, allocations: 407.1 kB / 482.5 MB, free: 2.531 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.475e-05/0.128, allocations: 8.031 kB / 482.5 MB, free: 2.523 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.269e-05/0.128, allocations: 42.73 kB / 482.6 MB, free: 2.473 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.844e-05/0.1281, allocations: 8.844 kB / 482.6 MB, free: 2.465 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002241/0.1283, allocations: 184.2 kB / 482.8 MB, free: 2.246 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.45e-05/0.1283, allocations: 4.375 kB / 482.8 MB, free: 2.242 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.312e-05/0.1284, allocations: 12.38 kB / 482.8 MB, free: 2.23 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001576/0.1285, allocations: 81.72 kB / 482.9 MB, free: 2.145 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.626e-06/0.1285, allocations: 4 kB / 482.9 MB, free: 2.141 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.315e-05/0.1286, allocations: 3.984 kB / 482.9 MB, free: 2.137 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.182e-06/0.1286, allocations: 4 kB / 482.9 MB, free: 2.133 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.837e-05/0.1287, allocations: 35.98 kB / 482.9 MB, free: 2.098 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006195/0.1293, allocations: 348.4 kB / 483.2 MB, free: 1.707 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001059/0.1294, allocations: 46.58 kB / 483.3 MB, free: 1.652 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.77e-05/0.1295, allocations: 28.86 kB / 483.3 MB, free: 1.621 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.074e-05/0.1295, allocations: 7.938 kB / 483.3 MB, free: 1.613 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001804/0.1297, allocations: 71.31 kB / 483.4 MB, free: 1.531 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.423e-06/0.1297, allocations: 0 / 483.4 MB, free: 1.531 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002158/0.1299, allocations: 89.53 kB / 483.5 MB, free: 1.438 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.864e-05/0.1299, allocations: 55.41 kB / 483.5 MB, free: 1.371 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001162/0.1301, allocations: 140.8 kB / 483.7 MB, free: 1.227 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.137e-05/0.1301, allocations: 33.7 kB / 483.7 MB, free: 1.188 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.252e-05/0.1301, allocations: 96.05 kB / 483.8 MB, free: 1.09 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.678e-05/0.1302, allocations: 23.86 kB / 483.8 MB, free: 1.066 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.149e-05/0.1302, allocations: 21.72 kB / 483.8 MB, free: 1.039 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000112/0.1303, allocations: 322.8 kB / 484.2 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.401e-05/0.1304, allocations: 23.92 kB / 484.2 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.867e-05/0.1304, allocations: 34.58 kB / 484.2 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.244e-05/0.1305, allocations: 46.56 kB / 484.3 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.1305, allocations: 4 kB / 484.3 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001438/0.1307, allocations: 93.77 kB / 484.4 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.485e-05/0.1307, allocations: 4.062 kB / 484.4 MB, free: 500 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.264e-06/0.1307, allocations: 11.94 kB / 484.4 MB, free: 488 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.184e-05/0.1307, allocations: 0 / 484.4 MB, free: 488 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.482e-05/0.1308, allocations: 4 kB / 484.4 MB, free: 484 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.771e-06/0.1308, allocations: 4 kB / 484.4 MB, free: 480 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.56e-05/0.1309, allocations: 11.89 kB / 484.4 MB, free: 468 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.026e-05/0.1309, allocations: 8 kB / 484.4 MB, free: 460 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.5e-05/0.131, allocations: 116.2 kB / 484.5 MB, free: 336 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.71e-05/0.131, allocations: 7.906 kB / 484.5 MB, free: 328 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.639e-05/0.1311, allocations: 20.64 kB / 484.5 MB, free: 308 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.559e-06/0.1311, allocations: 4 kB / 484.5 MB, free: 304 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.1311, allocations: 0 / 484.5 MB, free: 304 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.476e-06/0.1311, allocations: 3.938 kB / 484.5 MB, free: 300 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003398/0.1314, allocations: 346.4 kB / 484.9 MB, free: 15.9 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.1314, allocations: 4 kB / 484.9 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.789e-05/0.1315, allocations: 0 / 484.9 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.1315, allocations: 4 kB / 484.9 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.698e-06/0.1315, allocations: 0 / 484.9 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.875e-06/0.1315, allocations: 4 kB / 484.9 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.1315, allocations: 7.875 kB / 484.9 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002129/0.1318, allocations: 191.6 kB / 485.1 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.715e-05/0.1318, allocations: 81.02 kB / 485.2 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.083e-05/0.1318, allocations: 7.969 kB / 485.2 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.826e-05/0.1319, allocations: 7.984 kB / 485.2 MB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.194e-05/0.132, allocations: 7.984 kB / 485.2 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.863e-06/0.132, allocations: 4 kB / 485.2 MB, free: 15.55 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.278e-05/0.1321, allocations: 109.5 kB / 485.3 MB, free: 15.45 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1321, allocations: 0 / 485.3 MB, free: 15.45 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002356/0.1323, allocations: 19.91 kB / 485.3 MB, free: 15.43 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.0005002/0.1328, allocations: 0.7279 MB / 486.1 MB, free: 14.67 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00015/0.133, allocations: 52.05 kB / 486.1 MB, free: 14.62 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.133, allocations: 0 / 486.1 MB, free: 14.62 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 5.084e-05/0.1331, allocations: 16 kB / 486.1 MB, free: 14.61 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003263/0.1334, allocations: 19.98 kB / 486.1 MB, free: 14.59 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001597/0.135, allocations: 1.525 MB / 487.7 MB, free: 12.98 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002927/0.1353, allocations: 0.6968 MB / 488.4 MB, free: 12.25 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.265e-05/0.1354, allocations: 8.422 kB / 488.4 MB, free: 12.25 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.733e-05/0.1354, allocations: 23.44 kB / 488.4 MB, free: 12.22 MB / 366.1 MB Notification: Performance of SimCode: time 3.6e-07/0.1354, allocations: 4 kB / 488.4 MB, free: 12.22 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01412/0.1496, allocations: 2.054 MB / 490.4 MB, free: 10.27 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000238/0.1498, allocations: 191.2 kB / 490.6 MB, free: 10.02 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.826/1.976, allocations: 4 kB / 490.6 MB, free: 10.01 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