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 2.2.0-master/package.mo", uses=false) Using package PNlib with version 2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 2.2.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.001524/0.001524, allocations: 108 kB / 15.63 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001794/0.001794, allocations: 190.3 kB / 16.55 MB, free: 6.637 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.361/1.361, allocations: 222.9 MB / 240.2 MB, free: 4.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 2.2.0-master/package.mo): time 0.1895/0.1895, allocations: 16.74 MB / 307.1 MB, free: 15 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001308/0.001309, allocations: 63.91 kB / 371.8 MB, free: 3.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2584/0.2597, allocations: 53.46 MB / 425.2 MB, free: 39.7 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.SingleTD): time 0.001882/0.2616, allocations: 1.049 MB / 426.3 MB, free: 39.28 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005054/0.2621, allocations: 267.6 kB / 426.5 MB, free: 39.2 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.459e-05/0.2622, allocations: 2.625 kB / 426.5 MB, free: 39.2 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001254/0.2623, allocations: 38.8 kB / 426.6 MB, free: 39.18 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001841/0.2625, allocations: 43.5 kB / 426.6 MB, free: 39.16 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001096/0.2627, allocations: 68.23 kB / 426.7 MB, free: 39.16 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001966/0.2629, allocations: 240.2 kB / 426.9 MB, free: 39.14 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.52e-05/0.2629, allocations: 30.62 kB / 427 MB, free: 39.13 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.764e-05/0.263, allocations: 120.4 kB / 427.1 MB, free: 39.11 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.162e-05/0.2631, allocations: 54.59 kB / 427.1 MB, free: 39.07 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.715e-05/0.2631, allocations: 2.5 kB / 427.1 MB, free: 39.07 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.674e-05/0.2632, allocations: 8.125 kB / 427.1 MB, free: 39.07 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.929e-05/0.2632, allocations: 25.73 kB / 427.2 MB, free: 39.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.924e-05/0.2633, allocations: 39.62 kB / 427.2 MB, free: 39.05 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001054/0.2634, allocations: 75.2 kB / 427.3 MB, free: 39.03 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.2634, allocations: 5.625 kB / 427.3 MB, free: 39.03 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.2634, allocations: 0 / 427.3 MB, free: 39.03 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.005e-06/0.2634, allocations: 0 / 427.3 MB, free: 39.03 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.0003963/0.2638, allocations: 439.3 kB / 427.7 MB, free: 38.61 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.923e-05/0.2639, allocations: 15.45 kB / 427.7 MB, free: 38.61 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.883e-05/0.2639, allocations: 48.98 kB / 427.8 MB, free: 38.56 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.147e-05/0.2639, allocations: 10.88 kB / 427.8 MB, free: 38.56 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001178/0.264, allocations: 206.4 kB / 428 MB, free: 38.34 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.94e-05/0.2641, allocations: 13.28 kB / 428 MB, free: 38.34 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.276e-05/0.2641, allocations: 6.25 kB / 428 MB, free: 38.34 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002151/0.2643, allocations: 138.6 kB / 428.1 MB, free: 38.26 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.536e-06/0.2643, allocations: 0 / 428.1 MB, free: 38.26 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.102e-05/0.2643, allocations: 2.844 kB / 428.1 MB, free: 38.26 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.428e-06/0.2644, allocations: 0 / 428.1 MB, free: 38.26 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001758/0.2645, allocations: 63.97 kB / 428.2 MB, free: 38.25 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005479/0.2651, allocations: 0.9038 MB / 429.1 MB, free: 37.37 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001407/0.2652, allocations: 83.25 kB / 429.2 MB, free: 37.32 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.633e-05/0.2653, allocations: 35.67 kB / 429.2 MB, free: 37.3 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.464e-06/0.2653, allocations: 2.656 kB / 429.2 MB, free: 37.3 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001452/0.2655, allocations: 90.12 kB / 429.3 MB, free: 37.23 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.382e-06/0.2655, allocations: 0 / 429.3 MB, free: 37.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.0002789/0.2658, allocations: 158.2 kB / 429.5 MB, free: 37.16 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.831e-05/0.2658, allocations: 114.9 kB / 429.6 MB, free: 37.03 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000102/0.2659, allocations: 177 kB / 429.8 MB, free: 36.92 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.116e-05/0.2659, allocations: 29.27 kB / 429.8 MB, free: 36.89 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.187e-05/0.266, allocations: 116.1 kB / 429.9 MB, free: 36.79 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.604e-05/0.266, allocations: 26.55 kB / 429.9 MB, free: 36.78 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.217e-05/0.2661, allocations: 39.22 kB / 430 MB, free: 36.76 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.93e-05/0.2661, allocations: 321.2 kB / 430.3 MB, free: 36.45 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.686e-05/0.2662, allocations: 33.81 kB / 430.3 MB, free: 36.45 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.071e-05/0.2663, allocations: 89.25 kB / 430.4 MB, free: 36.37 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002454/0.2665, allocations: 263.6 kB / 430.7 MB, free: 36.17 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.2665, allocations: 0 / 430.7 MB, free: 36.17 MB / 350.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002286/0.2668, allocations: 192.7 kB / 430.8 MB, free: 36.08 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.026e-05/0.2668, allocations: 35.23 kB / 430.9 MB, free: 36.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.2668, allocations: 2.906 kB / 430.9 MB, free: 36.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.259e-05/0.2668, allocations: 2.844 kB / 430.9 MB, free: 36.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.472e-05/0.2669, allocations: 22.78 kB / 430.9 MB, free: 36.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.322e-06/0.2669, allocations: 2.781 kB / 430.9 MB, free: 36.04 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.008e-05/0.267, allocations: 16.45 kB / 430.9 MB, free: 36.04 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.406e-05/0.267, allocations: 5.188 kB / 430.9 MB, free: 36.04 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.0001153/0.2671, allocations: 176.1 kB / 431.1 MB, free: 35.88 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.847e-05/0.2671, allocations: 9.625 kB / 431.1 MB, free: 35.87 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.867e-05/0.2672, allocations: 13.84 kB / 431.1 MB, free: 35.87 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.774e-06/0.2672, allocations: 0 / 431.1 MB, free: 35.87 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-06/0.2672, allocations: 3.234 kB / 431.1 MB, free: 35.87 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.985e-06/0.2672, allocations: 2.875 kB / 431.1 MB, free: 35.87 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003384/0.2675, allocations: 498.8 kB / 431.6 MB, free: 35.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.2675, allocations: 0 / 431.6 MB, free: 35.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.662e-05/0.2676, allocations: 10.05 kB / 431.6 MB, free: 35.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.2676, allocations: 2.781 kB / 431.6 MB, free: 35.45 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.378e-06/0.2676, allocations: 2.938 kB / 431.6 MB, free: 35.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.2676, allocations: 2.75 kB / 431.6 MB, free: 35.45 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.2676, allocations: 0 / 431.6 MB, free: 35.45 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001821/0.2678, allocations: 305 kB / 431.9 MB, free: 35.21 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.212e-05/0.2678, allocations: 94.94 kB / 432 MB, free: 35.1 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.932e-05/0.2679, allocations: 10.28 kB / 432 MB, free: 35.1 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.675e-05/0.268, allocations: 2.969 kB / 432 MB, free: 35.1 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.417e-05/0.268, allocations: 19.38 kB / 432.1 MB, free: 35.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.853e-06/0.268, allocations: 2.938 kB / 432.1 MB, free: 35.09 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.818e-05/0.2681, allocations: 125.2 kB / 432.2 MB, free: 35.02 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.2681, allocations: 3.938 kB / 432.2 MB, free: 35.01 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002894/0.2684, allocations: 25.88 kB / 432.2 MB, free: 35.01 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.0003451/0.2687, allocations: 0.8446 MB / 433.1 MB, free: 34.23 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002031/0.2689, allocations: 149.9 kB / 433.2 MB, free: 34.16 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.269, allocations: 3.875 kB / 433.2 MB, free: 34.16 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.605e-05/0.2691, allocations: 89.8 kB / 433.3 MB, free: 34.09 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003145/0.2694, allocations: 8.875 kB / 433.3 MB, free: 34.09 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001369/0.2708, allocations: 1.865 MB / 435.2 MB, free: 32.58 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001092/0.2709, allocations: 0.7075 MB / 435.9 MB, free: 31.88 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.122e-05/0.271, allocations: 21.3 kB / 435.9 MB, free: 31.88 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.124e-05/0.271, allocations: 36.84 kB / 435.9 MB, free: 31.86 MB / 350.1 MB Notification: Performance of SimCode: time 2.6e-07/0.271, allocations: 0 / 435.9 MB, free: 31.86 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01756/0.2886, allocations: 2.436 MB / 438.4 MB, free: 31.42 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.774/6.063, allocations: 3.375 kB / 438.4 MB, free: 31.42 MB / 350.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","../files/PNlib_PNlib.Examples.DisTest.SingleTD.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches