Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.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.OnDelay,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_OnDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.OnDelay,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_OnDelay",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.002002/0.002002, allocations: 107.2 kB / 17.2 MB, free: 6.289 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.001911/0.001911, allocations: 194 kB / 18.12 MB, free: 5.383 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.446/1.446, allocations: 222.9 MB / 241.8 MB, free: 15.48 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.2255/0.2255, allocations: 44.18 MB / 336.1 MB, free: 3.004 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001462/0.001462, allocations: 64.48 kB / 407.8 MB, free: 27.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1197/0.1212, allocations: 60.83 MB / 468.6 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.003652/0.1249, allocations: 1.947 MB / 470.6 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001702/0.1266, allocations: 1.029 MB / 471.6 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001658/0.1268, allocations: 3.938 kB / 471.6 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007738/0.1276, allocations: 175.6 kB / 471.8 MB, free: 11.57 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000381/0.128, allocations: 115.6 kB / 471.9 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005205/0.1285, allocations: 166.8 kB / 472 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003619/0.1289, allocations: 267.3 kB / 472.3 MB, free: 11.04 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001319/0.129, allocations: 29.62 kB / 472.3 MB, free: 11.01 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000207/0.1292, allocations: 99.66 kB / 472.4 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002075/0.1294, allocations: 111.6 kB / 472.5 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.291e-05/0.1295, allocations: 8 kB / 472.6 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001643/0.1297, allocations: 47.92 kB / 472.6 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.439e-05/0.1298, allocations: 51.81 kB / 472.6 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001373/0.1299, allocations: 107.5 kB / 472.8 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003648/0.1303, allocations: 271.4 kB / 473 MB, free: 10.33 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.1303, allocations: 0 / 473 MB, free: 10.33 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1303, allocations: 0 / 473 MB, free: 10.33 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.203e-05/0.1303, allocations: 0 / 473 MB, free: 10.33 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: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.001144/0.1315, allocations: 0.6572 MB / 473.7 MB, free: 9.598 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.303e-05/0.1315, allocations: 8.031 kB / 473.7 MB, free: 9.59 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.018e-05/0.1316, allocations: 46.75 kB / 473.7 MB, free: 9.535 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.762e-05/0.1317, allocations: 28.66 kB / 473.8 MB, free: 9.508 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003593/0.132, allocations: 278.7 kB / 474 MB, free: 9.195 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.584e-05/0.1321, allocations: 93.42 kB / 474.1 MB, free: 9.086 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.869e-05/0.1322, allocations: 19.94 kB / 474.1 MB, free: 9.066 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003896/0.1326, allocations: 153 kB / 474.3 MB, free: 8.898 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.442e-05/0.1326, allocations: 11.97 kB / 474.3 MB, free: 8.887 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.409e-05/0.1326, allocations: 8 kB / 474.3 MB, free: 8.879 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.665e-06/0.1327, allocations: 4 kB / 474.3 MB, free: 8.875 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002296/0.1329, allocations: 87.88 kB / 474.4 MB, free: 8.789 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008358/0.1337, allocations: 0.6062 MB / 475 MB, free: 8.125 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003969/0.1341, allocations: 175.9 kB / 475.2 MB, free: 7.926 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000183/0.1343, allocations: 90.55 kB / 475.3 MB, free: 7.828 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.022e-05/0.1344, allocations: 4 kB / 475.3 MB, free: 7.824 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004743/0.1349, allocations: 429.1 kB / 475.7 MB, free: 7.328 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.813e-06/0.1349, allocations: 0 / 475.7 MB, free: 7.328 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.0009319/0.1358, allocations: 450.7 kB / 476.1 MB, free: 6.863 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001359/0.136, allocations: 225.5 kB / 476.3 MB, free: 6.594 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003658/0.1363, allocations: 312.9 kB / 476.7 MB, free: 6.281 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.488e-05/0.1364, allocations: 33.7 kB / 476.7 MB, free: 6.242 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001358/0.1365, allocations: 132.7 kB / 476.8 MB, free: 6.105 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.262e-05/0.1366, allocations: 55.34 kB / 476.9 MB, free: 6.051 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.605e-05/0.1367, allocations: 57.64 kB / 476.9 MB, free: 5.988 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001716/0.1369, allocations: 334.8 kB / 477.3 MB, free: 5.652 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001588/0.137, allocations: 55.97 kB / 477.3 MB, free: 5.598 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002212/0.1373, allocations: 146.8 kB / 477.5 MB, free: 5.418 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004595/0.1377, allocations: 354.7 kB / 477.8 MB, free: 5.004 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.1377, allocations: 4 kB / 477.8 MB, free: 5 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006305/0.1384, allocations: 354 kB / 478.1 MB, free: 4.629 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.862e-05/0.1385, allocations: 97.31 kB / 478.2 MB, free: 4.516 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.406e-06/0.1385, allocations: 4 kB / 478.2 MB, free: 4.512 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.2e-05/0.1385, allocations: 4 kB / 478.2 MB, free: 4.508 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001182/0.1387, allocations: 23.92 kB / 478.3 MB, free: 4.484 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.208e-05/0.1387, allocations: 4 kB / 478.3 MB, free: 4.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001628/0.1388, allocations: 27.83 kB / 478.3 MB, free: 4.453 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.444e-05/0.1389, allocations: 8 kB / 478.3 MB, free: 4.445 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 29 ($PRE.onDelay1.u,$PRE.onDelay1.t_next,$PRE.onDelay3.u,$PRE.onDelay3.t_next,$PRE.onDelay2.u,$PRE.onDelay2.t_next,$PRE.booleanTable.combiTimeTable.nextTimeEvent,$whenCondition5,booleanTable.combiTimeTable.nextTimeEventScaled,$PRE.booleanTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEvent,onDelay1.t_next,onDelay1.delaySignal,onDelay1.y,onDelay1.u,$whenCondition7,$whenCondition6,onDelay2.t_next,onDelay2.delaySignal,onDelay2.y,onDelay2.u,$whenCondition4,$whenCondition3,onDelay3.t_next,onDelay3.delaySignal,onDelay3.y,onDelay3.u,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 3 * 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.0002613/0.1391, allocations: 269.4 kB / 478.6 MB, free: 4.156 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.928e-05/0.1392, allocations: 39.66 kB / 478.6 MB, free: 4.117 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.999e-05/0.1393, allocations: 21.7 kB / 478.6 MB, free: 4.098 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.509e-05/0.1393, allocations: 8 kB / 478.6 MB, free: 4.09 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.278e-06/0.1393, allocations: 0 / 478.6 MB, free: 4.09 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.1393, allocations: 0 / 478.6 MB, free: 4.09 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003122/0.1396, allocations: 289.5 kB / 478.9 MB, free: 3.758 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.1397, allocations: 7.938 kB / 478.9 MB, free: 3.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.845e-05/0.1397, allocations: 4 kB / 478.9 MB, free: 3.746 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.1397, allocations: 0 / 478.9 MB, free: 3.746 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.395e-05/0.1397, allocations: 12 kB / 478.9 MB, free: 3.734 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.1397, allocations: 0 / 478.9 MB, free: 3.734 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.1397, allocations: 4 kB / 479 MB, free: 3.73 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006547/0.1404, allocations: 447.3 kB / 479.4 MB, free: 3.254 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.256e-05/0.1405, allocations: 104.8 kB / 479.5 MB, free: 3.133 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.73e-05/0.1406, allocations: 19.97 kB / 479.5 MB, free: 3.113 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000112/0.1407, allocations: 16 kB / 479.5 MB, free: 3.098 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.645e-05/0.1408, allocations: 23.95 kB / 479.6 MB, free: 3.074 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.794e-05/0.1408, allocations: 12 kB / 479.6 MB, free: 3.062 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002185/0.141, allocations: 236.4 kB / 479.8 MB, free: 2.832 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.141, allocations: 0 / 479.8 MB, free: 2.832 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003165/0.1413, allocations: 67.94 kB / 479.9 MB, free: 2.766 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 21 ($whenCondition5,$whenCondition6,$whenCondition7,onDelay1.u,onDelay1.y,onDelay1.delaySignal,onDelay1.t_next,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled,$whenCondition3,$whenCondition4,onDelay2.u,onDelay2.y,onDelay2.delaySignal,onDelay2.t_next,$whenCondition1,$whenCondition2,onDelay3.u,onDelay3.y,onDelay3.delaySignal,onDelay3.t_next) * Number of discrete states: 14 (onDelay3.t_next,onDelay3.delaySignal,$whenCondition2,$whenCondition1,onDelay2.t_next,onDelay2.delaySignal,$whenCondition4,$whenCondition3,booleanTable.combiTimeTable.nextTimeEventScaled,onDelay1.t_next,onDelay1.delaySignal,$whenCondition7,$whenCondition6,booleanTable.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 2 * 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.001884/0.1432, allocations: 1.297 MB / 481.2 MB, free: 1.578 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005513/0.1438, allocations: 390 kB / 481.5 MB, free: 1.16 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.1438, allocations: 4 kB / 481.5 MB, free: 1.156 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003472/0.1442, allocations: 342.1 kB / 481.9 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000334/0.1445, allocations: 56.03 kB / 481.9 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003663/0.1482, allocations: 2.88 MB / 484.8 MB, free: 13.68 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003179/0.1485, allocations: 0.7515 MB / 485.6 MB, free: 12.91 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000102/0.1486, allocations: 29.83 kB / 485.6 MB, free: 12.88 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001156/0.1487, allocations: 63.42 kB / 485.7 MB, free: 12.82 MB / 366.1 MB Notification: Performance of SimCode: time 5.41e-07/0.1488, allocations: 0 / 485.7 MB, free: 12.82 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1971/0.3458, allocations: 5.648 MB / 491.3 MB, free: 7.262 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000371/0.3462, allocations: 220.8 kB / 491.5 MB, free: 7.008 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.938/2.284, allocations: 0 / 491.5 MB, free: 7.008 MB / 366.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_OnDelay_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_OnDelay.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/OnDelay/OnDelay.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.OnDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches