Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001502/0.001502, allocations: 104.2 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001678/0.001679, allocations: 191.9 kB / 18.56 MB, free: 4.605 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.487/1.487, allocations: 222.9 MB / 242.3 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2114/0.2114, allocations: 44.18 MB / 336.6 MB, free: 2.746 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001269/0.001269, allocations: 60.69 kB / 408.5 MB, free: 27.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1208/0.122, allocations: 60.82 MB / 469.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002575/0.1247, allocations: 0.8077 MB / 470.2 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002453/0.1249, allocations: 55.75 kB / 470.2 MB, free: 13.41 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.037e-05/0.125, allocations: 4 kB / 470.2 MB, free: 13.4 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001182/0.1252, allocations: 7.922 kB / 470.2 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.11e-05/0.1252, allocations: 3.938 kB / 470.2 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001165/0.1253, allocations: 15.98 kB / 470.2 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001064/0.1255, allocations: 35.92 kB / 470.3 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001114/0.1256, allocations: 15.98 kB / 470.3 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.939e-05/0.1256, allocations: 15.92 kB / 470.3 MB, free: 13.31 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.824e-05/0.1257, allocations: 23.86 kB / 470.3 MB, free: 13.29 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.372e-05/0.1257, allocations: 0 / 470.3 MB, free: 13.29 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.578e-05/0.1257, allocations: 4 kB / 470.3 MB, free: 13.28 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.915e-05/0.1257, allocations: 4 kB / 470.3 MB, free: 13.28 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.733e-05/0.1258, allocations: 23.86 kB / 470.4 MB, free: 13.25 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001046/0.1259, allocations: 32.19 kB / 470.4 MB, free: 13.22 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.1259, allocations: 0 / 470.4 MB, free: 13.22 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.1259, allocations: 0 / 470.4 MB, free: 13.22 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.09e-06/0.1259, allocations: 0 / 470.4 MB, free: 13.22 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.0004058/0.1263, allocations: 355.4 kB / 470.7 MB, free: 12.82 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.448e-05/0.1264, allocations: 8.031 kB / 470.8 MB, free: 12.82 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.076e-05/0.1264, allocations: 38.69 kB / 470.8 MB, free: 12.77 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.927e-05/0.1265, allocations: 8.844 kB / 470.8 MB, free: 12.76 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001598/0.1266, allocations: 184.2 kB / 471 MB, free: 12.54 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.578e-06/0.1266, allocations: 4.375 kB / 471 MB, free: 12.54 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.869e-05/0.1267, allocations: 384 / 471 MB, free: 12.54 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001175/0.1268, allocations: 50.25 kB / 471 MB, free: 12.48 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.109e-05/0.1268, allocations: 7.922 kB / 471 MB, free: 12.48 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.057e-05/0.1268, allocations: 0 / 471 MB, free: 12.48 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.376e-06/0.1268, allocations: 11.94 kB / 471.1 MB, free: 12.46 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.719e-05/0.1269, allocations: 15.94 kB / 471.1 MB, free: 12.45 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005074/0.1274, allocations: 284.7 kB / 471.3 MB, free: 12.12 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.687e-05/0.1275, allocations: 22.58 kB / 471.4 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.835e-05/0.1275, allocations: 8.922 kB / 471.4 MB, free: 12.08 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.239e-05/0.1275, allocations: 7.922 kB / 471.4 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001415/0.1277, allocations: 51.42 kB / 471.4 MB, free: 12.01 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 1.173e-06/0.1277, allocations: 0 / 471.4 MB, free: 12.01 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001504/0.1279, allocations: 45.69 kB / 471.5 MB, free: 11.96 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.264e-05/0.1279, allocations: 51.41 kB / 471.5 MB, free: 11.89 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.92e-05/0.128, allocations: 129.7 kB / 471.7 MB, free: 11.76 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.615e-05/0.128, allocations: 29.7 kB / 471.7 MB, free: 11.72 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.822e-05/0.1281, allocations: 92.12 kB / 471.8 MB, free: 11.63 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.608e-05/0.1281, allocations: 11.89 kB / 471.8 MB, free: 11.62 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.32e-05/0.1281, allocations: 21.7 kB / 471.8 MB, free: 11.59 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.988e-05/0.1283, allocations: 314.8 kB / 472.1 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.913e-05/0.1283, allocations: 8 kB / 472.1 MB, free: 11.27 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.374e-05/0.1283, allocations: 17.7 kB / 472.1 MB, free: 11.24 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.014e-05/0.1284, allocations: 29.72 kB / 472.2 MB, free: 11.21 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.1284, allocations: 4 kB / 472.2 MB, free: 11.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.905e-05/0.1284, allocations: 49.62 kB / 472.2 MB, free: 11.15 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.059e-05/0.1285, allocations: 8 kB / 472.2 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-06/0.1285, allocations: 0 / 472.2 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.22e-05/0.1285, allocations: 0 / 472.2 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.096e-05/0.1285, allocations: 4 kB / 472.2 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.89e-06/0.1285, allocations: 0 / 472.2 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.325e-05/0.1286, allocations: 11.84 kB / 472.2 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.777e-06/0.1286, allocations: 0 / 472.2 MB, free: 11.12 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 7.61e-05/0.1287, allocations: 129.7 kB / 472.4 MB, free: 10.99 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.848e-06/0.1287, allocations: 0 / 472.4 MB, free: 10.99 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.408e-05/0.1287, allocations: 11.91 kB / 472.4 MB, free: 10.97 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.1287, allocations: 336 / 472.4 MB, free: 10.97 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.1287, allocations: 0 / 472.4 MB, free: 10.97 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.938e-06/0.1287, allocations: 3.938 kB / 472.4 MB, free: 10.97 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002899/0.129, allocations: 302.6 kB / 472.7 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.754e-06/0.129, allocations: 3.938 kB / 472.7 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.912e-05/0.1291, allocations: 0 / 472.7 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.198e-06/0.1291, allocations: 4 kB / 472.7 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.108e-06/0.1291, allocations: 11.88 kB / 472.7 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/0.1291, allocations: 3.984 kB / 472.7 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.1291, allocations: 0 / 472.7 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001399/0.1293, allocations: 147.5 kB / 472.8 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.554e-05/0.1293, allocations: 85 kB / 472.9 MB, free: 10.33 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.545e-05/0.1293, allocations: 3.938 kB / 472.9 MB, free: 10.33 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.878e-05/0.1294, allocations: 4.031 kB / 472.9 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.438e-05/0.1294, allocations: 4.062 kB / 472.9 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.132e-06/0.1294, allocations: 4 kB / 472.9 MB, free: 10.32 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.793e-05/0.1295, allocations: 99.58 kB / 473 MB, free: 10.22 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1295, allocations: 0 / 473 MB, free: 10.22 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002371/0.1297, allocations: 4 kB / 473 MB, free: 10.21 MB / 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.0003692/0.1301, allocations: 0.6812 MB / 473.7 MB, free: 9.504 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 7.769e-05/0.1302, allocations: 19.88 kB / 473.7 MB, free: 9.484 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.1302, allocations: 0 / 473.7 MB, free: 9.484 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.952e-05/0.1302, allocations: 15.98 kB / 473.8 MB, free: 9.469 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002878/0.1305, allocations: 11.94 kB / 473.8 MB, free: 9.457 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00109/0.1316, allocations: 1.286 MB / 475.1 MB, free: 8.086 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002372/0.1319, allocations: 0.6846 MB / 475.7 MB, free: 7.375 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.107e-05/0.1319, allocations: 3.906 kB / 475.8 MB, free: 7.371 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.14e-05/0.132, allocations: 15.44 kB / 475.8 MB, free: 7.355 MB / 350.1 MB Notification: Performance of SimCode: time 2.51e-07/0.132, allocations: 0 / 475.8 MB, free: 7.355 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0181/0.1501, allocations: 1.538 MB / 477.3 MB, free: 5.883 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.576/7.726, allocations: 5.812 kB / 477.3 MB, free: 5.879 MB / 350.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_SelfResettingIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_SelfResettingIntegrator.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches