Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.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.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009787/0.0009785, allocations: 93.67 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.001131/0.001131, 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.372/1.372, allocations: 227.7 MB / 246.8 MB, free: 11.36 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2127/0.2127, allocations: 46.2 MB / 345.2 MB, free: 11.37 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002858/0.0002859, allocations: 11.98 kB / 419.6 MB, free: 19.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1199/0.1203, allocations: 63.56 MB / 483.2 MB, free: 4.047 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.001079/0.1214, allocations: 0.5333 MB / 483.7 MB, free: 3.516 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002009/0.1216, allocations: 47.89 kB / 483.8 MB, free: 3.469 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.569e-05/0.1217, allocations: 4 kB / 483.8 MB, free: 3.465 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.247e-05/0.1218, allocations: 3.938 kB / 483.8 MB, free: 3.461 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.887e-05/0.1218, allocations: 3.938 kB / 483.8 MB, free: 3.457 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001096/0.1219, allocations: 19.97 kB / 483.8 MB, free: 3.438 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 8.733e-05/0.122, allocations: 27.92 kB / 483.8 MB, free: 3.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001/0.1221, allocations: 27.92 kB / 483.8 MB, free: 3.383 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.858e-05/0.1222, allocations: 7.938 kB / 483.8 MB, free: 3.375 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.879e-05/0.1222, allocations: 15.86 kB / 483.9 MB, free: 3.359 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.481e-05/0.1222, allocations: 0 / 483.9 MB, free: 3.359 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.736e-06/0.1223, allocations: 0 / 483.9 MB, free: 3.359 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.778e-05/0.1223, allocations: 4 kB / 483.9 MB, free: 3.355 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.928e-05/0.1223, allocations: 37.58 kB / 483.9 MB, free: 3.312 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 8.4e-05/0.1224, allocations: 31.88 kB / 483.9 MB, free: 3.281 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.1224, allocations: 0 / 483.9 MB, free: 3.281 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.1224, allocations: 0 / 483.9 MB, free: 3.281 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.037e-06/0.1224, allocations: 4 kB / 483.9 MB, free: 3.277 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0003682/0.1228, allocations: 343.7 kB / 484.3 MB, free: 2.891 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.844e-05/0.1229, allocations: 8.875 kB / 484.3 MB, free: 2.883 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.737e-05/0.1229, allocations: 38.75 kB / 484.3 MB, free: 2.836 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.637e-05/0.1229, allocations: 4.844 kB / 484.3 MB, free: 2.832 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001617/0.1231, allocations: 176.3 kB / 484.5 MB, free: 2.621 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.875e-06/0.1231, allocations: 4.375 kB / 484.5 MB, free: 2.617 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.905e-05/0.1231, allocations: 4.375 kB / 484.5 MB, free: 2.613 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001152/0.1233, allocations: 54.25 kB / 484.6 MB, free: 2.555 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.468e-06/0.1233, allocations: 7.938 kB / 484.6 MB, free: 2.547 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.02e-05/0.1233, allocations: 0 / 484.6 MB, free: 2.547 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.378e-06/0.1233, allocations: 3.938 kB / 484.6 MB, free: 2.543 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.524e-05/0.1234, allocations: 19.97 kB / 484.6 MB, free: 2.523 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000465/0.1238, allocations: 300.6 kB / 484.9 MB, free: 2.18 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.481e-05/0.1239, allocations: 26.58 kB / 484.9 MB, free: 2.145 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.761e-05/0.1239, allocations: 8.922 kB / 484.9 MB, free: 2.133 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.362e-06/0.1239, allocations: 0 / 484.9 MB, free: 2.133 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001013/0.124, allocations: 55.34 kB / 485 MB, free: 2.066 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.124, allocations: 0 / 485 MB, free: 2.066 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001303/0.1242, allocations: 49.59 kB / 485 MB, free: 2.012 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.8e-05/0.1242, allocations: 51.41 kB / 485.1 MB, free: 1.949 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.052e-05/0.1243, allocations: 121.8 kB / 485.2 MB, free: 1.82 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.427e-05/0.1243, allocations: 25.7 kB / 485.2 MB, free: 1.789 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.112e-05/0.1244, allocations: 88.5 kB / 485.3 MB, free: 1.699 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.551e-05/0.1244, allocations: 11.91 kB / 485.3 MB, free: 1.688 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.24e-05/0.1244, allocations: 9.719 kB / 485.3 MB, free: 1.672 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001065/0.1245, allocations: 326.8 kB / 485.6 MB, free: 1.344 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.393e-05/0.1246, allocations: 3.938 kB / 485.6 MB, free: 1.34 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.594e-05/0.1246, allocations: 25.66 kB / 485.7 MB, free: 1.309 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.714e-05/0.1246, allocations: 25.72 kB / 485.7 MB, free: 1.277 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.1246, allocations: 0 / 485.7 MB, free: 1.277 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.282e-05/0.1247, allocations: 61.53 kB / 485.8 MB, free: 1.211 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.158e-05/0.1248, allocations: 4 kB / 485.8 MB, free: 1.207 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.947e-06/0.1248, allocations: 0 / 485.8 MB, free: 1.207 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.809e-06/0.1248, allocations: 0 / 485.8 MB, free: 1.207 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.298e-05/0.1248, allocations: 7.984 kB / 485.8 MB, free: 1.199 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.408e-06/0.1248, allocations: 0 / 485.8 MB, free: 1.199 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.317e-05/0.1249, allocations: 11.97 kB / 485.8 MB, free: 1.188 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.178e-06/0.1249, allocations: 0 / 485.8 MB, free: 1.188 MB / 350.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: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (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 prepare postOptimizeDAE: time 9.447e-05/0.125, allocations: 113.8 kB / 485.9 MB, free: 1.066 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.357e-05/0.125, allocations: 7.906 kB / 485.9 MB, free: 1.059 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.954e-05/0.125, allocations: 3.906 kB / 485.9 MB, free: 1.051 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.933e-06/0.125, allocations: 0 / 485.9 MB, free: 1.051 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.556e-06/0.125, allocations: 0 / 485.9 MB, free: 1.051 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.125, allocations: 7.922 kB / 485.9 MB, free: 1.043 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002771/0.1253, allocations: 298.9 kB / 486.2 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.1253, allocations: 3.938 kB / 486.2 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.071e-05/0.1254, allocations: 4 kB / 486.2 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.1254, allocations: 0 / 486.2 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.61e-05/0.1254, allocations: 3.938 kB / 486.2 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.858e-06/0.1254, allocations: 3.984 kB / 486.2 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.1254, allocations: 48 / 486.2 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001303/0.1255, allocations: 163.4 kB / 486.4 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.208e-05/0.1256, allocations: 85.08 kB / 486.5 MB, free: 412 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.442e-05/0.1256, allocations: 3.938 kB / 486.5 MB, free: 408 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.519e-05/0.1257, allocations: 0 / 486.5 MB, free: 408 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.884e-05/0.1257, allocations: 7.984 kB / 486.5 MB, free: 400 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.24e-06/0.1257, allocations: 4 kB / 486.5 MB, free: 396 kB / 350.1 MB Notification: Performance of sorting global known variables: time 4.832e-05/0.1258, allocations: 91.27 kB / 486.6 MB, free: 304 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1258, allocations: 0 / 486.6 MB, free: 304 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002138/0.126, allocations: 8.281 kB / 486.6 MB, free: 296 kB / 350.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: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.0003759/0.1264, allocations: 0.6851 MB / 487.3 MB, free: 15.58 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 7.096e-05/0.1265, allocations: 23.92 kB / 487.3 MB, free: 15.55 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.1265, allocations: 0 / 487.3 MB, free: 15.55 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 1.632e-05/0.1265, allocations: 4 kB / 487.3 MB, free: 15.55 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002612/0.1268, allocations: 8 kB / 487.3 MB, free: 15.54 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001056/0.1278, allocations: 1.293 MB / 488.6 MB, free: 14.16 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002305/0.1281, allocations: 0.6887 MB / 489.3 MB, free: 13.45 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.045e-05/0.1281, allocations: 0 / 489.3 MB, free: 13.45 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.596e-05/0.1281, allocations: 19.42 kB / 489.3 MB, free: 13.43 MB / 366.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1281, allocations: 0 / 489.3 MB, free: 13.43 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01094/0.1391, allocations: 1.315 MB / 490.6 MB, free: 12.23 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000285/0.1394, allocations: 194.3 kB / 490.8 MB, free: 11.98 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.678/1.817, allocations: 0 / 490.8 MB, free: 11.98 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_SelfResettingIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_SelfResettingIntegrator.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches