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.001146/0.001146, 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.00116/0.00116, 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.411/1.411, allocations: 222.9 MB / 242.3 MB, free: 15.19 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.2191/0.2191, allocations: 44.18 MB / 336.6 MB, free: 2.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001162/0.001162, allocations: 59.28 kB / 408.5 MB, free: 27.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1108/0.112, allocations: 60.82 MB / 469.3 MB, free: 14.26 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.003757/0.1158, allocations: 1.881 MB / 471.2 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001742/0.1176, allocations: 1.044 MB / 472.3 MB, free: 11.31 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000171/0.1178, allocations: 0 / 472.3 MB, free: 11.31 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007305/0.1185, allocations: 179.5 kB / 472.4 MB, free: 11.14 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003554/0.1189, allocations: 123.5 kB / 472.6 MB, free: 11.02 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005568/0.1195, allocations: 205.9 kB / 472.8 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003688/0.1198, allocations: 275.3 kB / 473 MB, free: 10.55 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001236/0.12, allocations: 33.67 kB / 473.1 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001733/0.1201, allocations: 107.7 kB / 473.2 MB, free: 10.41 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001667/0.1203, allocations: 115.5 kB / 473.3 MB, free: 10.3 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.406e-05/0.1204, allocations: 20 kB / 473.3 MB, free: 10.28 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001528/0.1205, allocations: 63.97 kB / 473.4 MB, free: 10.21 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.488e-05/0.1206, allocations: 55.83 kB / 473.4 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001275/0.1208, allocations: 115.4 kB / 473.5 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003626/0.1211, allocations: 271.3 kB / 473.8 MB, free: 9.781 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.1211, allocations: 4 kB / 473.8 MB, free: 9.777 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.1211, allocations: 0 / 473.8 MB, free: 9.777 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.887e-06/0.1212, allocations: 0 / 473.8 MB, free: 9.777 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.0009676/0.1221, allocations: 0.6572 MB / 474.5 MB, free: 9.047 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.141e-05/0.1222, allocations: 12.03 kB / 474.5 MB, free: 9.035 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.102e-05/0.1222, allocations: 38.75 kB / 474.5 MB, free: 8.988 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.545e-05/0.1223, allocations: 32.64 kB / 474.5 MB, free: 8.957 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003634/0.1227, allocations: 274.7 kB / 474.8 MB, free: 8.648 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.239e-05/0.1228, allocations: 105.3 kB / 474.9 MB, free: 8.527 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.702e-05/0.1228, allocations: 16 kB / 474.9 MB, free: 8.512 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003428/0.1232, allocations: 167.5 kB / 475.1 MB, free: 8.332 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.021e-05/0.1232, allocations: 0 / 475.1 MB, free: 8.332 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.9e-05/0.1232, allocations: 7.938 kB / 475.1 MB, free: 8.324 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.941e-06/0.1232, allocations: 0 / 475.1 MB, free: 8.324 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002446/0.1235, allocations: 87.94 kB / 475.2 MB, free: 8.238 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008604/0.1244, allocations: 0.6062 MB / 475.8 MB, free: 7.574 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003411/0.1247, allocations: 175.9 kB / 476 MB, free: 7.375 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001734/0.1249, allocations: 90.55 kB / 476.1 MB, free: 7.277 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.257e-05/0.1249, allocations: 7.969 kB / 476.1 MB, free: 7.27 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004465/0.1254, allocations: 436.8 kB / 476.5 MB, free: 6.77 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 2.345e-06/0.1254, allocations: 0 / 476.5 MB, free: 6.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008695/0.1263, allocations: 434.3 kB / 476.9 MB, free: 6.32 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001428/0.1264, allocations: 225.5 kB / 477.1 MB, free: 6.051 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000358/0.1268, allocations: 324.9 kB / 477.5 MB, free: 5.727 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.831e-05/0.1268, allocations: 29.7 kB / 477.5 MB, free: 5.691 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001111/0.1269, allocations: 132.7 kB / 477.6 MB, free: 5.555 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.439e-05/0.127, allocations: 55.34 kB / 477.7 MB, free: 5.5 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001151/0.1271, allocations: 49.64 kB / 477.7 MB, free: 5.445 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001394/0.1273, allocations: 338.8 kB / 478 MB, free: 5.105 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001453/0.1274, allocations: 51.97 kB / 478.1 MB, free: 5.055 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002031/0.1276, allocations: 142.3 kB / 478.2 MB, free: 4.879 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004378/0.1281, allocations: 363 kB / 478.6 MB, free: 4.457 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.14e-06/0.1281, allocations: 0 / 478.6 MB, free: 4.457 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006014/0.1287, allocations: 354.1 kB / 478.9 MB, free: 4.086 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.764e-05/0.1288, allocations: 97.09 kB / 479 MB, free: 3.973 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/0.1288, allocations: 80 / 479 MB, free: 3.973 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.981e-05/0.1288, allocations: 4 kB / 479 MB, free: 3.969 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001127/0.129, allocations: 23.92 kB / 479.1 MB, free: 3.945 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.088e-05/0.129, allocations: 7.984 kB / 479.1 MB, free: 3.938 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001479/0.1291, allocations: 27.83 kB / 479.1 MB, free: 3.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.413e-05/0.1292, allocations: 20.22 kB / 479.1 MB, free: 3.891 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.0002694/0.1294, allocations: 265.4 kB / 479.4 MB, free: 3.602 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.001e-05/0.1295, allocations: 31.66 kB / 479.4 MB, free: 3.57 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.417e-05/0.1296, allocations: 25.7 kB / 479.4 MB, free: 3.547 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.262e-06/0.1296, allocations: 4 kB / 479.4 MB, free: 3.543 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.605e-06/0.1296, allocations: 0 / 479.4 MB, free: 3.543 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.1296, allocations: 0 / 479.4 MB, free: 3.543 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002971/0.1299, allocations: 289.7 kB / 479.7 MB, free: 3.211 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.468e-06/0.1299, allocations: 7.938 kB / 479.7 MB, free: 3.203 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.955e-05/0.13, allocations: 4 kB / 479.7 MB, free: 3.199 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.513e-06/0.13, allocations: 7.984 kB / 479.7 MB, free: 3.191 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.524e-05/0.13, allocations: 8 kB / 479.7 MB, free: 3.184 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.453e-06/0.13, allocations: 11.98 kB / 479.8 MB, free: 3.172 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.13, allocations: 0 / 479.8 MB, free: 3.172 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006539/0.1307, allocations: 447.3 kB / 480.2 MB, free: 2.691 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.802e-05/0.1308, allocations: 100.8 kB / 480.3 MB, free: 2.574 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.04e-05/0.1309, allocations: 16 kB / 480.3 MB, free: 2.559 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001098/0.131, allocations: 11.98 kB / 480.3 MB, free: 2.547 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.404e-05/0.1311, allocations: 19.98 kB / 480.3 MB, free: 2.527 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.688e-05/0.1311, allocations: 12 kB / 480.3 MB, free: 2.516 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002361/0.1314, allocations: 232.4 kB / 480.6 MB, free: 2.289 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1314, allocations: 4 kB / 480.6 MB, free: 2.285 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003367/0.1317, allocations: 71.94 kB / 480.6 MB, free: 2.215 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.001889/0.1336, allocations: 1.304 MB / 482 MB, free: 1.02 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005899/0.1342, allocations: 389.9 kB / 482.3 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.1342, allocations: 0 / 482.3 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003872/0.1346, allocations: 346.1 kB / 482.7 MB, free: 232 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003671/0.135, allocations: 44.84 kB / 482.7 MB, free: 188 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003717/0.1387, allocations: 2.852 MB / 485.6 MB, free: 13.16 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004043/0.1391, allocations: 0.7517 MB / 486.3 MB, free: 12.38 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001147/0.1393, allocations: 29.83 kB / 486.3 MB, free: 12.36 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000119/0.1394, allocations: 67.42 kB / 486.4 MB, free: 12.29 MB / 366.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1394, allocations: 4 kB / 486.4 MB, free: 12.29 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02545/0.1649, allocations: 6.031 MB / 492.4 MB, free: 6.328 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.826/7.99, allocations: 12.38 kB / 492.5 MB, free: 6.32 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