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.001266/0.001266, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001397/0.001397, allocations: 193.3 kB / 16.14 MB, free: 6.703 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.277/1.277, allocations: 222.9 MB / 239.8 MB, free: 4.609 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.1948/0.1948, allocations: 16.75 MB / 306.7 MB, free: 15.1 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001239/0.001239, allocations: 55.91 kB / 371.1 MB, free: 3.902 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2634/0.2646, allocations: 53.46 MB / 424.5 MB, free: 39.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.SingleTD): time 0.001848/0.2665, allocations: 1.143 MB / 425.7 MB, free: 38.96 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005078/0.267, allocations: 288.4 kB / 426 MB, free: 38.88 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.554e-05/0.2671, allocations: 3.375 kB / 426 MB, free: 38.88 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001362/0.2673, allocations: 34.17 kB / 426 MB, free: 38.86 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001665/0.2674, allocations: 33.81 kB / 426 MB, free: 38.85 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001039/0.2676, allocations: 71.02 kB / 426.1 MB, free: 38.85 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00016/0.2677, allocations: 206.2 kB / 426.3 MB, free: 38.83 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.145e-05/0.2678, allocations: 23.48 kB / 426.3 MB, free: 38.82 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.805e-05/0.2679, allocations: 104.7 kB / 426.4 MB, free: 38.8 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.003e-05/0.2679, allocations: 49.92 kB / 426.5 MB, free: 38.77 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.594e-05/0.268, allocations: 2.594 kB / 426.5 MB, free: 38.77 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.756e-05/0.268, allocations: 5.719 kB / 426.5 MB, free: 38.77 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.106e-05/0.2681, allocations: 23.02 kB / 426.5 MB, free: 38.77 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.439e-05/0.2681, allocations: 40.88 kB / 426.5 MB, free: 38.75 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001041/0.2682, allocations: 75.23 kB / 426.6 MB, free: 38.73 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.2682, allocations: 0 / 426.6 MB, free: 38.73 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.12e-07/0.2683, allocations: 0 / 426.6 MB, free: 38.73 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.316e-06/0.2683, allocations: 1.344 kB / 426.6 MB, free: 38.73 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.0004143/0.2687, allocations: 436.5 kB / 427 MB, free: 38.32 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.214e-05/0.2687, allocations: 12.34 kB / 427.1 MB, free: 38.32 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.727e-05/0.2687, allocations: 41.27 kB / 427.1 MB, free: 38.28 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.336e-05/0.2688, allocations: 10.62 kB / 427.1 MB, free: 38.27 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001275/0.2689, allocations: 212.6 kB / 427.3 MB, free: 38.05 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.031e-05/0.2689, allocations: 6.656 kB / 427.3 MB, free: 38.05 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.352e-05/0.269, allocations: 5.656 kB / 427.3 MB, free: 38.05 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000236/0.2692, allocations: 142.6 kB / 427.5 MB, free: 37.96 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.604e-06/0.2692, allocations: 0 / 427.5 MB, free: 37.96 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.281e-05/0.2692, allocations: 6.25 kB / 427.5 MB, free: 37.96 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.02e-06/0.2692, allocations: 2.781 kB / 427.5 MB, free: 37.96 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001857/0.2694, allocations: 70.92 kB / 427.5 MB, free: 37.96 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005286/0.27, allocations: 0.892 MB / 428.4 MB, free: 37.08 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001409/0.2701, allocations: 80.73 kB / 428.5 MB, free: 37.03 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.801e-05/0.2702, allocations: 35.25 kB / 428.6 MB, free: 37.01 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.106e-05/0.2702, allocations: 0 / 428.6 MB, free: 37.01 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001414/0.2704, allocations: 105.1 kB / 428.7 MB, free: 36.93 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.403e-06/0.2704, allocations: 0 / 428.7 MB, free: 36.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.0002812/0.2707, allocations: 155 kB / 428.8 MB, free: 36.86 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.125e-05/0.2707, allocations: 112.5 kB / 428.9 MB, free: 36.73 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.878e-05/0.2708, allocations: 169 kB / 429.1 MB, free: 36.63 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.044e-05/0.2708, allocations: 29.45 kB / 429.1 MB, free: 36.6 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.324e-05/0.2709, allocations: 117.6 kB / 429.2 MB, free: 36.5 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.555e-05/0.2709, allocations: 18.22 kB / 429.2 MB, free: 36.49 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.432e-05/0.2709, allocations: 41.55 kB / 429.3 MB, free: 36.47 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.695e-05/0.271, allocations: 327.9 kB / 429.6 MB, free: 36.16 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.999e-05/0.2711, allocations: 31.78 kB / 429.6 MB, free: 36.15 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.473e-05/0.2711, allocations: 82.53 kB / 429.7 MB, free: 36.09 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002714/0.2714, allocations: 264.5 kB / 430 MB, free: 35.88 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.2714, allocations: 0 / 430 MB, free: 35.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002369/0.2717, allocations: 197.2 kB / 430.2 MB, free: 35.79 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.322e-05/0.2717, allocations: 34.58 kB / 430.2 MB, free: 35.76 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.137e-06/0.2717, allocations: 0 / 430.2 MB, free: 35.76 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.192e-05/0.2717, allocations: 3.094 kB / 430.2 MB, free: 35.76 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.838e-05/0.2718, allocations: 19.78 kB / 430.2 MB, free: 35.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.703e-06/0.2718, allocations: 6.938 kB / 430.2 MB, free: 35.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.163e-05/0.2719, allocations: 18.31 kB / 430.2 MB, free: 35.74 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.444e-05/0.2719, allocations: 6.938 kB / 430.3 MB, free: 35.74 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.0001197/0.272, allocations: 171.6 kB / 430.4 MB, free: 35.59 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.834e-05/0.2721, allocations: 9.562 kB / 430.4 MB, free: 35.59 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.675e-05/0.2721, allocations: 15.39 kB / 430.4 MB, free: 35.59 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.2721, allocations: 6.938 kB / 430.5 MB, free: 35.58 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.2721, allocations: 0 / 430.5 MB, free: 35.58 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.2721, allocations: 0 / 430.5 MB, free: 35.58 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003412/0.2725, allocations: 498.1 kB / 430.9 MB, free: 35.17 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.2725, allocations: 1.078 kB / 430.9 MB, free: 35.17 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.753e-05/0.2725, allocations: 5.234 kB / 430.9 MB, free: 35.17 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.2725, allocations: 3.188 kB / 430.9 MB, free: 35.17 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.387e-06/0.2725, allocations: 0 / 430.9 MB, free: 35.17 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.2725, allocations: 6.906 kB / 431 MB, free: 35.17 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.2725, allocations: 0 / 431 MB, free: 35.17 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000193/0.2727, allocations: 310.6 kB / 431.3 MB, free: 34.92 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.359e-05/0.2728, allocations: 97.42 kB / 431.4 MB, free: 34.81 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.014e-05/0.2728, allocations: 3.031 kB / 431.4 MB, free: 34.81 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.713e-05/0.2729, allocations: 6.125 kB / 431.4 MB, free: 34.81 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.712e-05/0.273, allocations: 20.53 kB / 431.4 MB, free: 34.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.121e-06/0.273, allocations: 0 / 431.4 MB, free: 34.8 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.982e-05/0.273, allocations: 130.8 kB / 431.5 MB, free: 34.72 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.273, allocations: 0 / 431.5 MB, free: 34.72 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003012/0.2733, allocations: 23.72 kB / 431.5 MB, free: 34.72 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.0003556/0.2737, allocations: 0.8415 MB / 432.4 MB, free: 33.95 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002023/0.2739, allocations: 153.1 kB / 432.5 MB, free: 33.87 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.383e-06/0.2739, allocations: 0 / 432.5 MB, free: 33.87 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.437e-05/0.274, allocations: 86.52 kB / 432.6 MB, free: 33.8 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003116/0.2743, allocations: 19.64 kB / 432.6 MB, free: 33.8 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001399/0.2757, allocations: 1.873 MB / 434.5 MB, free: 32.33 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001098/0.2759, allocations: 0.7056 MB / 435.2 MB, free: 31.63 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.54e-05/0.2759, allocations: 27.67 kB / 435.2 MB, free: 31.63 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.163e-05/0.276, allocations: 35.09 kB / 435.3 MB, free: 31.62 MB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.276, allocations: 0 / 435.3 MB, free: 31.62 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01101/0.287, allocations: 2.245 MB / 437.5 MB, free: 31.3 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001166/0.2872, allocations: 161.9 kB / 437.7 MB, free: 31.05 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.695/1.982, allocations: 0 / 437.7 MB, free: 31.05 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