Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PNlib_PNlib.Examples.DisTest.SingleTD.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/PNlib 3.0.0-master/package.mo", uses=false) Using package PNlib with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/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(PNlib.Examples.DisTest.SingleTD,fileNamePrefix="PNlib_PNlib_Examples_DisTest_SingleTD",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PNlib.Examples.DisTest.SingleTD,fileNamePrefix="PNlib_PNlib_Examples_DisTest_SingleTD",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.005115/0.005115, allocations: 105.1 kB / 15.74 MB, free: 6.02 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.0013/0.0013, allocations: 192 kB / 16.67 MB, free: 5.938 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.428/1.428, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.08119/0.08119, allocations: 16.72 MB / 307.3 MB, free: 14.21 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001911/0.001911, allocations: 67.88 kB / 425.8 MB, free: 10.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1086/0.1105, allocations: 53.48 MB / 479.3 MB, free: 5.441 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.SingleTD): time 0.002422/0.1129, allocations: 1.047 MB / 480.4 MB, free: 4.387 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006995/0.1137, allocations: 283.7 kB / 480.6 MB, free: 4.109 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.05e-05/0.1138, allocations: 0 / 480.6 MB, free: 4.109 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001694/0.1139, allocations: 47.66 kB / 480.7 MB, free: 4.062 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002412/0.1142, allocations: 35.73 kB / 480.7 MB, free: 4.027 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001675/0.1144, allocations: 75.83 kB / 480.8 MB, free: 3.953 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003232/0.1147, allocations: 235.5 kB / 481 MB, free: 3.723 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.37e-05/0.1148, allocations: 16.41 kB / 481 MB, free: 3.703 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001511/0.1149, allocations: 115.7 kB / 481.2 MB, free: 3.59 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.417e-05/0.115, allocations: 51.53 kB / 481.2 MB, free: 3.539 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.981e-05/0.115, allocations: 4 kB / 481.2 MB, free: 3.535 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.973e-05/0.1151, allocations: 12 kB / 481.2 MB, free: 3.523 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.642e-05/0.1152, allocations: 23.91 kB / 481.2 MB, free: 3.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.963e-05/0.1153, allocations: 39.67 kB / 481.3 MB, free: 3.461 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001593/0.1154, allocations: 83.81 kB / 481.4 MB, free: 3.379 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.744e-06/0.1154, allocations: 7.984 kB / 481.4 MB, free: 3.371 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.1155, allocations: 0 / 481.4 MB, free: 3.371 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.16e-06/0.1155, allocations: 0 / 481.4 MB, free: 3.371 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0005871/0.1161, allocations: 432.7 kB / 481.8 MB, free: 2.895 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.652e-05/0.1161, allocations: 19.83 kB / 481.8 MB, free: 2.875 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.971e-05/0.1161, allocations: 38.73 kB / 481.9 MB, free: 2.828 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.794e-05/0.1162, allocations: 16.84 kB / 481.9 MB, free: 2.812 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001967/0.1164, allocations: 206.3 kB / 482.1 MB, free: 2.574 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.321e-05/0.1164, allocations: 8 kB / 482.1 MB, free: 2.566 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.353e-05/0.1164, allocations: 7.984 kB / 482.1 MB, free: 2.559 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002791/0.1167, allocations: 138.7 kB / 482.2 MB, free: 2.398 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.151e-05/0.1168, allocations: 3.938 kB / 482.2 MB, free: 2.395 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.12e-05/0.1168, allocations: 0 / 482.2 MB, free: 2.395 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.671e-06/0.1168, allocations: 4 kB / 482.2 MB, free: 2.391 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002138/0.117, allocations: 67.89 kB / 482.3 MB, free: 2.324 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009317/0.1179, allocations: 0.902 MB / 483.2 MB, free: 1.316 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000188/0.1181, allocations: 89.22 kB / 483.3 MB, free: 1.211 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.174e-05/0.1182, allocations: 33.64 kB / 483.3 MB, free: 1.172 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.105e-06/0.1182, allocations: 0 / 483.3 MB, free: 1.172 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002049/0.1184, allocations: 93.03 kB / 483.4 MB, free: 1.062 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.172e-06/0.1185, allocations: 0 / 483.4 MB, free: 1.062 MB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003573/0.1188, allocations: 163.2 kB / 483.6 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.956e-05/0.1189, allocations: 102.8 kB / 483.7 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001591/0.1191, allocations: 178.2 kB / 483.8 MB, free: 0.582 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.179e-05/0.1191, allocations: 29.7 kB / 483.9 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.639e-05/0.1192, allocations: 116.2 kB / 484 MB, free: 436 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.778e-05/0.1192, allocations: 27.91 kB / 484 MB, free: 408 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.906e-05/0.1193, allocations: 37.7 kB / 484.1 MB, free: 364 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001356/0.1194, allocations: 322.8 kB / 484.4 MB, free: 32 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.648e-05/0.1195, allocations: 32.23 kB / 484.4 MB, free: 0 / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001317/0.1196, allocations: 81.59 kB / 484.5 MB, free: 15.89 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003693/0.12, allocations: 269.5 kB / 484.7 MB, free: 15.58 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.043e-06/0.12, allocations: 0 / 484.7 MB, free: 15.58 MB / 366.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003062/0.1204, allocations: 191.1 kB / 484.9 MB, free: 15.38 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.543e-05/0.1204, allocations: 29.7 kB / 485 MB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/0.1204, allocations: 7.938 kB / 485 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.379e-05/0.1204, allocations: 0 / 485 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.504e-05/0.1205, allocations: 15.98 kB / 485 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.558e-06/0.1205, allocations: 7.938 kB / 485 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.046e-05/0.1206, allocations: 19.89 kB / 485 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.501e-05/0.1206, allocations: 4 kB / 485 MB, free: 15.29 MB / 366.1 MB Warning: Assuming fixed start value for the following 3 variables: T1.firingTime:DISCRETE(fixed = true protected = true ) "next putative firing time" type: Real T1.ani:DISCRETE(fixed = true protected = true ) "for transition animation" type: Boolean T1.fireTime:DISCRETE(fixed = true protected = true ) "for transition animation" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.T1.firingTime,T1.activation.active,T1.delayPassed,$PRE.T1.delayPassed,T1.firingTime,T1.active,$whenCondition2,$PRE.T1.ani,$PRE.T1.fireTime,T1.ani,T1.fireTime,T1.firingCon,T1.enabledByInPlaces,$whenCondition1,T1.enabledByOutPlaces) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 1 * 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.0001855/0.1208, allocations: 172.6 kB / 485.2 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.892e-05/0.1209, allocations: 23.89 kB / 485.2 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.959e-05/0.1209, allocations: 13 kB / 485.2 MB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.058e-06/0.1209, allocations: 3.984 kB / 485.2 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.1209, allocations: 0 / 485.2 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.015e-06/0.1209, allocations: 0 / 485.2 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005443/0.1215, allocations: 0.4992 MB / 485.7 MB, free: 14.52 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.1215, allocations: 0 / 485.7 MB, free: 14.52 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.967e-05/0.1215, allocations: 4.125 kB / 485.7 MB, free: 14.51 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.1215, allocations: 0 / 485.7 MB, free: 14.51 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.31e-05/0.1215, allocations: 7.984 kB / 485.7 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.1215, allocations: 0 / 485.7 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.1216, allocations: 4 kB / 485.7 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002993/0.1219, allocations: 312.3 kB / 486 MB, free: 14.17 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.206e-05/0.1219, allocations: 93 kB / 486.1 MB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.019e-05/0.122, allocations: 0 / 486.1 MB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001014/0.1221, allocations: 8 kB / 486.1 MB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.619e-05/0.1221, allocations: 11.98 kB / 486.1 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.191e-06/0.1221, allocations: 0 / 486.1 MB, free: 14.04 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001023/0.1222, allocations: 136.2 kB / 486.3 MB, free: 13.91 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1222, allocations: 0 / 486.3 MB, free: 13.91 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002943/0.1225, allocations: 24 kB / 486.3 MB, free: 13.89 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,T1.fireTime,T1.ani,T1.active,$whenCondition2,T1.firingTime,T1.delayPassed,T1.activation.active) * Number of discrete states: 2 (T1.activation.active,T1.delayPassed) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 3 * 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.0006289/0.1232, allocations: 0.8422 MB / 487.1 MB, free: 13.01 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002695/0.1235, allocations: 143.2 kB / 487.3 MB, free: 12.86 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.1235, allocations: 384 / 487.3 MB, free: 12.86 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001199/0.1236, allocations: 95.33 kB / 487.4 MB, free: 12.75 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003148/0.1239, allocations: 14.28 kB / 487.4 MB, free: 12.74 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002144/0.1261, allocations: 1.871 MB / 489.3 MB, free: 10.74 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003479/0.1264, allocations: 0.7041 MB / 490 MB, free: 10.01 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.017e-05/0.1265, allocations: 24.56 kB / 490 MB, free: 9.988 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.262e-05/0.1266, allocations: 39.42 kB / 490 MB, free: 9.949 MB / 366.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1266, allocations: 0 / 490 MB, free: 9.949 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02356/0.1502, allocations: 2.466 MB / 492.5 MB, free: 7.527 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.861/8.011, allocations: 6.359 kB / 492.5 MB, free: 7.523 MB / 366.1 MB (rm -f PNlib_PNlib.Examples.DisTest.SingleTD.pipe ; mkfifo PNlib_PNlib.Examples.DisTest.SingleTD.pipe ; head -c 1048576 < PNlib_PNlib.Examples.DisTest.SingleTD.pipe >> ../files/PNlib_PNlib.Examples.DisTest.SingleTD.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PNlib_PNlib.Examples.DisTest.SingleTD_res.mat --tempDir=temp_PNlib_PNlib_Examples_DisTest_SingleTD_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PNlib_PNlib_Examples_DisTest_SingleTD.fmu > PNlib_PNlib.Examples.DisTest.SingleTD.pipe 2>&1) diffSimulationResults("PNlib_PNlib.Examples.DisTest.SingleTD_res.mat","/mnt/ReferenceFiles/PNlib/ReferenceFiles/PNlib.Examples.DisTest.SingleTD.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PNlib_PNlib.Examples.DisTest.SingleTD.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches