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.01075/0.01075, allocations: 98.12 kB / 15.73 MB, free: 6.004 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.002138/0.002138, allocations: 195 kB / 16.67 MB, free: 5.934 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.49/1.49, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.2296/0.2296, allocations: 16.74 MB / 307.3 MB, free: 14.88 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001284/0.001284, allocations: 62.83 kB / 425.9 MB, free: 37.36 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1286/0.1299, allocations: 53.48 MB / 479.3 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.SingleTD): time 0.002495/0.1325, allocations: 1.052 MB / 480.4 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007573/0.1333, allocations: 281.8 kB / 480.7 MB, free: 9.922 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001267/0.1334, allocations: 2.344 kB / 480.7 MB, free: 9.922 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001853/0.1336, allocations: 38.69 kB / 480.7 MB, free: 9.891 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003059/0.1339, allocations: 46.58 kB / 480.8 MB, free: 9.852 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001708/0.1341, allocations: 81.34 kB / 480.8 MB, free: 9.781 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003031/0.1344, allocations: 231.8 kB / 481.1 MB, free: 9.645 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.115e-05/0.1345, allocations: 21.39 kB / 481.1 MB, free: 9.633 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001481/0.1347, allocations: 117.3 kB / 481.2 MB, free: 9.559 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.554e-05/0.1347, allocations: 53.22 kB / 481.2 MB, free: 9.516 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.223e-05/0.1348, allocations: 3.531 kB / 481.3 MB, free: 9.516 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.474e-05/0.1348, allocations: 12.41 kB / 481.3 MB, free: 9.512 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.636e-05/0.1349, allocations: 26.78 kB / 481.3 MB, free: 9.492 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.723e-05/0.135, allocations: 34.31 kB / 481.3 MB, free: 9.465 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001799/0.1352, allocations: 85.31 kB / 481.4 MB, free: 9.402 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.1352, allocations: 0 / 481.4 MB, free: 9.402 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.1352, allocations: 0 / 481.4 MB, free: 9.402 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.4e-06/0.1352, allocations: 1.062 kB / 481.4 MB, free: 9.402 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.0006189/0.1358, allocations: 434.5 kB / 481.8 MB, free: 8.957 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.752e-05/0.1359, allocations: 13.17 kB / 481.8 MB, free: 8.953 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.561e-05/0.136, allocations: 46.42 kB / 481.9 MB, free: 8.902 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.449e-05/0.136, allocations: 18.62 kB / 481.9 MB, free: 8.891 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002152/0.1362, allocations: 212.1 kB / 482.1 MB, free: 8.656 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.89e-05/0.1363, allocations: 8.75 kB / 482.1 MB, free: 8.652 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.717e-05/0.1363, allocations: 5.188 kB / 482.1 MB, free: 8.652 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002901/0.1366, allocations: 139.5 kB / 482.3 MB, free: 8.527 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.131e-05/0.1366, allocations: 4 kB / 482.3 MB, free: 8.523 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.358e-05/0.1366, allocations: 2 kB / 482.3 MB, free: 8.523 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.153e-06/0.1367, allocations: 1.938 kB / 482.3 MB, free: 8.523 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002071/0.1369, allocations: 66.73 kB / 482.3 MB, free: 8.492 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007683/0.1376, allocations: 0.903 MB / 483.2 MB, free: 7.531 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000195/0.1379, allocations: 86.25 kB / 483.3 MB, free: 7.457 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.348e-05/0.1379, allocations: 31.95 kB / 483.4 MB, free: 7.43 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.544e-05/0.138, allocations: 4.938 kB / 483.4 MB, free: 7.426 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002588/0.1382, allocations: 93.69 kB / 483.5 MB, free: 7.336 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.492e-06/0.1382, allocations: 0 / 483.5 MB, free: 7.336 MB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003735/0.1386, allocations: 157 kB / 483.6 MB, free: 7.227 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.615e-05/0.1387, allocations: 106.4 kB / 483.7 MB, free: 7.102 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00015/0.1388, allocations: 171.6 kB / 483.9 MB, free: 6.961 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.464e-05/0.1389, allocations: 31.86 kB / 483.9 MB, free: 6.926 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.085e-05/0.1389, allocations: 122.4 kB / 484 MB, free: 6.805 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.584e-05/0.139, allocations: 23.88 kB / 484.1 MB, free: 6.785 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.457e-05/0.139, allocations: 38.95 kB / 484.1 MB, free: 6.754 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.516e-05/0.1391, allocations: 322.3 kB / 484.4 MB, free: 6.434 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.533e-05/0.1392, allocations: 28.61 kB / 484.4 MB, free: 6.422 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.93e-05/0.1393, allocations: 82.03 kB / 484.5 MB, free: 6.336 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003346/0.1396, allocations: 268.2 kB / 484.8 MB, free: 6.082 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.1396, allocations: 0 / 484.8 MB, free: 6.082 MB / 350.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002886/0.1399, allocations: 186.5 kB / 485 MB, free: 5.957 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.935e-05/0.14, allocations: 32.58 kB / 485 MB, free: 5.926 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.468e-06/0.14, allocations: 5.875 kB / 485 MB, free: 5.922 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.142e-05/0.14, allocations: 2.75 kB / 485 MB, free: 5.922 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000106/0.1401, allocations: 24.3 kB / 485 MB, free: 5.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.155e-05/0.1402, allocations: 2.75 kB / 485 MB, free: 5.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.389e-05/0.1402, allocations: 21.33 kB / 485 MB, free: 5.895 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.101e-05/0.1403, allocations: 6.875 kB / 485.1 MB, free: 5.895 MB / 350.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.0002003/0.1405, allocations: 175.9 kB / 485.2 MB, free: 5.719 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.87e-05/0.1405, allocations: 17.41 kB / 485.2 MB, free: 5.707 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.068e-05/0.1406, allocations: 13.12 kB / 485.3 MB, free: 5.699 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.559e-06/0.1406, allocations: 1.375 kB / 485.3 MB, free: 5.699 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.608e-06/0.1406, allocations: 5.359 kB / 485.3 MB, free: 5.695 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.549e-06/0.1406, allocations: 0 / 485.3 MB, free: 5.695 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005231/0.1411, allocations: 496.1 kB / 485.7 MB, free: 5.215 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.674e-06/0.1411, allocations: 0 / 485.7 MB, free: 5.215 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.881e-05/0.1412, allocations: 3.969 kB / 485.7 MB, free: 5.215 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.406e-06/0.1412, allocations: 5.562 kB / 485.8 MB, free: 5.211 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.259e-05/0.1412, allocations: 4.734 kB / 485.8 MB, free: 5.207 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.005e-06/0.1412, allocations: 1.281 kB / 485.8 MB, free: 5.207 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.1412, allocations: 1.656 kB / 485.8 MB, free: 5.207 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002747/0.1415, allocations: 309.5 kB / 486.1 MB, free: 4.93 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.398e-05/0.1415, allocations: 91.41 kB / 486.2 MB, free: 4.824 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.131e-05/0.1416, allocations: 7.156 kB / 486.2 MB, free: 4.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001903/0.1418, allocations: 6.5 kB / 486.2 MB, free: 4.816 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.779e-05/0.1419, allocations: 9.203 kB / 486.2 MB, free: 4.812 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.204e-05/0.1419, allocations: 3.438 kB / 486.2 MB, free: 4.812 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001005/0.142, allocations: 139.8 kB / 486.3 MB, free: 4.699 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.142, allocations: 3.938 kB / 486.3 MB, free: 4.695 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003126/0.1423, allocations: 21.75 kB / 486.3 MB, free: 4.691 MB / 350.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.0005544/0.1429, allocations: 0.8432 MB / 487.2 MB, free: 3.883 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002679/0.1431, allocations: 141.4 kB / 487.3 MB, free: 3.785 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.1432, allocations: 0 / 487.3 MB, free: 3.785 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001008/0.1433, allocations: 90.41 kB / 487.4 MB, free: 3.707 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003414/0.1436, allocations: 17.12 kB / 487.4 MB, free: 3.695 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001797/0.1454, allocations: 1.869 MB / 489.3 MB, free: 2.004 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001772/0.1456, allocations: 0.706 MB / 490 MB, free: 1.293 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001094/0.1457, allocations: 23.56 kB / 490 MB, free: 1.281 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.485e-05/0.1458, allocations: 34.3 kB / 490.1 MB, free: 1.254 MB / 350.1 MB Notification: Performance of SimCode: time 5.91e-07/0.1458, allocations: 0 / 490.1 MB, free: 1.254 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02097/0.1668, allocations: 2.487 MB / 492.5 MB, free: 15.38 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.689/7.855, allocations: 5.891 kB / 492.5 MB, free: 15.38 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 & python3 -m fmpy simulate --output-file PNlib_PNlib.Examples.DisTest.SingleTD_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PNlib_PNlib_Examples_DisTest_SingleTD.fmu > PNlib_PNlib.Examples.DisTest.SingleTD.pipe 2>&1) diffSimulationResults("PNlib_PNlib.Examples.DisTest.SingleTD_res.csv","/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