Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.LimResetIntegrator,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_LimResetIntegrator",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.006063/0.006064, allocations: 99.89 kB / 15.87 MB, free: 6.309 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.001518/0.001518, allocations: 196.2 kB / 16.79 MB, free: 6.238 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.354/1.354, allocations: 205.1 MB / 222.6 MB, free: 4.734 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3126/0.3126, allocations: 43.49 MB / 313.5 MB, free: 8.293 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001359/0.001359, allocations: 71.91 kB / 382.1 MB, free: 8.398 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.118/0.1193, allocations: 57.78 MB / 439.9 MB, free: 14.52 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.002885/0.1223, allocations: 1.677 MB / 441.6 MB, free: 12.82 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001011/0.1233, allocations: 0.5892 MB / 442.2 MB, free: 12.23 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.897e-05/0.1234, allocations: 0 / 442.2 MB, free: 12.23 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001345/0.1236, allocations: 11.92 kB / 442.2 MB, free: 12.21 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.043e-05/0.1236, allocations: 11.92 kB / 442.2 MB, free: 12.2 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003904/0.124, allocations: 83.84 kB / 442.3 MB, free: 12.12 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001519/0.1242, allocations: 107.7 kB / 442.4 MB, free: 12.02 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000136/0.1243, allocations: 40.16 kB / 442.4 MB, free: 11.98 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.432e-05/0.1244, allocations: 47.84 kB / 442.5 MB, free: 11.93 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.444e-05/0.1245, allocations: 39.77 kB / 442.5 MB, free: 11.89 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.238e-05/0.1245, allocations: 4 kB / 442.5 MB, free: 11.89 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.939e-05/0.1246, allocations: 4 kB / 442.5 MB, free: 11.88 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.908e-05/0.1246, allocations: 19.92 kB / 442.5 MB, free: 11.86 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.804e-05/0.1247, allocations: 35.73 kB / 442.6 MB, free: 11.83 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001382/0.1248, allocations: 87.69 kB / 442.7 MB, free: 11.74 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.1248, allocations: 0 / 442.7 MB, free: 11.74 MB / 382.1 MB Notification: Performance of FrontEnd: time 8.32e-07/0.1248, allocations: 0 / 442.7 MB, free: 11.74 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.741e-06/0.1248, allocations: 0 / 442.7 MB, free: 11.74 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0007001/0.1255, allocations: 415 kB / 443.1 MB, free: 11.29 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.269e-05/0.1256, allocations: 12.03 kB / 443.1 MB, free: 11.28 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.387e-05/0.1256, allocations: 34.75 kB / 443.1 MB, free: 11.23 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.057e-05/0.1257, allocations: 12.84 kB / 443.1 MB, free: 11.22 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002353/0.1259, allocations: 200.2 kB / 443.3 MB, free: 10.99 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.867e-05/0.126, allocations: 384 / 443.3 MB, free: 10.99 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.547e-05/0.126, allocations: 20.3 kB / 443.3 MB, free: 10.97 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002843/0.1263, allocations: 105.6 kB / 443.4 MB, free: 10.86 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.525e-06/0.1263, allocations: 0 / 443.4 MB, free: 10.86 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.196e-05/0.1263, allocations: 4 kB / 443.4 MB, free: 10.86 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.308e-06/0.1263, allocations: 0 / 443.4 MB, free: 10.86 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001584/0.1265, allocations: 51.97 kB / 443.5 MB, free: 10.81 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006483/0.1271, allocations: 392.4 kB / 443.9 MB, free: 10.38 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003205/0.1275, allocations: 98.52 kB / 444 MB, free: 10.27 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001306/0.1276, allocations: 36.92 kB / 444 MB, free: 10.23 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.428e-05/0.1276, allocations: 0 / 444 MB, free: 10.23 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003009/0.1279, allocations: 107.3 kB / 444.1 MB, free: 10.11 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.332e-06/0.128, allocations: 0 / 444.1 MB, free: 10.11 MB / 382.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004576/0.1284, allocations: 149.4 kB / 444.3 MB, free: 9.961 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.68e-05/0.1285, allocations: 55.39 kB / 444.3 MB, free: 9.895 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001351/0.1286, allocations: 141.8 kB / 444.5 MB, free: 9.746 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.986e-05/0.1286, allocations: 29.7 kB / 444.5 MB, free: 9.711 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.232e-05/0.1287, allocations: 100.1 kB / 444.6 MB, free: 9.609 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.638e-05/0.1287, allocations: 19.8 kB / 444.6 MB, free: 9.59 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.562e-05/0.1288, allocations: 33.64 kB / 444.6 MB, free: 9.551 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001411/0.129, allocations: 334.7 kB / 445 MB, free: 9.215 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001184/0.1291, allocations: 27.98 kB / 445 MB, free: 9.188 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001219/0.1292, allocations: 49.69 kB / 445 MB, free: 9.133 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002182/0.1294, allocations: 81.61 kB / 445.1 MB, free: 9.047 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.1295, allocations: 0 / 445.1 MB, free: 9.047 MB / 382.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002757/0.1297, allocations: 121.5 kB / 445.2 MB, free: 8.922 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.803e-05/0.1298, allocations: 7.938 kB / 445.2 MB, free: 8.914 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.649e-06/0.1298, allocations: 0 / 445.2 MB, free: 8.914 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.303e-05/0.1298, allocations: 4 kB / 445.3 MB, free: 8.91 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001099/0.1299, allocations: 15.98 kB / 445.3 MB, free: 8.895 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.083e-06/0.1299, allocations: 0 / 445.3 MB, free: 8.895 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.914e-05/0.13, allocations: 15.98 kB / 445.3 MB, free: 8.879 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.666e-06/0.13, allocations: 4 kB / 445.3 MB, free: 8.875 MB / 382.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: 7 ($whenCondition1,change.u,$PRE.change.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 0.000101/0.1301, allocations: 117.8 kB / 445.4 MB, free: 8.75 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.494e-05/0.1302, allocations: 23.72 kB / 445.4 MB, free: 8.727 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.76e-05/0.1302, allocations: 20.66 kB / 445.4 MB, free: 8.711 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.544e-06/0.1302, allocations: 0 / 445.4 MB, free: 8.711 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.608e-06/0.1302, allocations: 0 / 445.4 MB, free: 8.711 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.81e-06/0.1302, allocations: 4 kB / 445.4 MB, free: 8.707 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005227/0.1308, allocations: 394.4 kB / 445.8 MB, free: 8.266 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.1308, allocations: 288 / 445.8 MB, free: 8.266 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.371e-05/0.1309, allocations: 12 kB / 445.8 MB, free: 8.254 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.1309, allocations: 0 / 445.8 MB, free: 8.254 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.438e-05/0.1309, allocations: 7.922 kB / 445.9 MB, free: 8.246 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.1309, allocations: 3.938 kB / 445.9 MB, free: 8.242 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.1309, allocations: 0 / 445.9 MB, free: 8.242 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004427/0.1314, allocations: 251.3 kB / 446.1 MB, free: 7.98 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.934e-05/0.1314, allocations: 85.05 kB / 446.2 MB, free: 7.879 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.087e-05/0.1314, allocations: 4.062 kB / 446.2 MB, free: 7.875 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001294/0.1316, allocations: 23.97 kB / 446.2 MB, free: 7.852 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.61e-05/0.1316, allocations: 7.984 kB / 446.2 MB, free: 7.844 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.526e-06/0.1316, allocations: 4 kB / 446.2 MB, free: 7.84 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.905e-05/0.1317, allocations: 112 kB / 446.3 MB, free: 7.73 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1317, allocations: 0 / 446.3 MB, free: 7.73 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002331/0.132, allocations: 19.94 kB / 446.4 MB, free: 7.711 MB / 382.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,change.u) * Number of discrete states: 1 (change.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.0006887/0.1327, allocations: 0.7941 MB / 447.1 MB, free: 6.887 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002622/0.1329, allocations: 84.5 kB / 447.2 MB, free: 6.805 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.764e-06/0.1329, allocations: 0 / 447.2 MB, free: 6.805 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000129/0.1331, allocations: 43.97 kB / 447.3 MB, free: 6.762 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003218/0.1334, allocations: 20.05 kB / 447.3 MB, free: 6.742 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001919/0.1353, allocations: 1.653 MB / 448.9 MB, free: 5.004 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002697/0.1356, allocations: 0.7042 MB / 449.6 MB, free: 4.273 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.922e-05/0.1357, allocations: 8.422 kB / 449.7 MB, free: 4.266 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.325e-05/0.1358, allocations: 35.42 kB / 449.7 MB, free: 4.23 MB / 382.1 MB Notification: Performance of SimCode: time 3e-07/0.1358, allocations: 0 / 449.7 MB, free: 4.23 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01303/0.1488, allocations: 2.301 MB / 452 MB, free: 1.926 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001811/0.149, allocations: 192.4 kB / 452.2 MB, free: 1.668 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.818/1.968, allocations: 7.938 kB / 452.2 MB, free: 1.66 MB / 382.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_LimResetIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_LimResetIntegrator.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches