Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PNlib_PNlib.Examples.ConTest.SingleTC.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.ConTest.SingleTC,fileNamePrefix="PNlib_PNlib_Examples_ConTest_SingleTC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PNlib.Examples.ConTest.SingleTC,fileNamePrefix="PNlib_PNlib_Examples_ConTest_SingleTC",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.001189/0.001189, 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.001225/0.001225, allocations: 192.8 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.324/1.324, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 2.2.0-master/package.mo): time 0.1712/0.1712, allocations: 16.75 MB / 307.1 MB, free: 14.92 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001912/0.001913, allocations: 63.91 kB / 371.8 MB, free: 3.328 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2589/0.2608, allocations: 53.45 MB / 425.2 MB, free: 39.67 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.ConTest.SingleTC): time 0.002305/0.2631, allocations: 1.056 MB / 426.3 MB, free: 39.23 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008882/0.2641, allocations: 391.5 kB / 426.7 MB, free: 39.11 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.856e-05/0.2641, allocations: 2.906 kB / 426.7 MB, free: 39.11 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001449/0.2643, allocations: 53 kB / 426.7 MB, free: 39.09 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002159/0.2645, allocations: 42.8 kB / 426.8 MB, free: 39.07 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000182/0.2647, allocations: 122.4 kB / 426.9 MB, free: 39.05 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002842/0.265, allocations: 316.1 kB / 427.2 MB, free: 39.02 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.051e-05/0.2651, allocations: 24.98 kB / 427.2 MB, free: 39.02 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.966e-05/0.2652, allocations: 154.9 kB / 427.4 MB, free: 38.99 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.335e-05/0.2653, allocations: 47.94 kB / 427.4 MB, free: 38.96 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.56e-05/0.2653, allocations: 2.688 kB / 427.4 MB, free: 38.96 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001063/0.2654, allocations: 61.33 kB / 427.5 MB, free: 38.96 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.11e-05/0.2655, allocations: 25.78 kB / 427.5 MB, free: 38.95 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.484e-05/0.2655, allocations: 32 kB / 427.5 MB, free: 38.94 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001539/0.2657, allocations: 116.3 kB / 427.6 MB, free: 38.91 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.2657, allocations: 0 / 427.6 MB, free: 38.91 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.2657, allocations: 0 / 427.6 MB, free: 38.91 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.357e-06/0.2657, allocations: 3.062 kB / 427.6 MB, free: 38.91 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0003549/0.2661, allocations: 425.2 kB / 428.1 MB, free: 38.49 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.424e-05/0.2661, allocations: 15.3 kB / 428.1 MB, free: 38.49 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.084e-05/0.2662, allocations: 40.81 kB / 428.1 MB, free: 38.45 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.346e-05/0.2662, allocations: 16.69 kB / 428.1 MB, free: 38.44 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001265/0.2663, allocations: 201.7 kB / 428.3 MB, free: 38.23 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.848e-05/0.2663, allocations: 13.41 kB / 428.3 MB, free: 38.22 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.216e-05/0.2664, allocations: 10.61 kB / 428.4 MB, free: 38.21 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001575/0.2665, allocations: 102.8 kB / 428.5 MB, free: 38.14 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.614e-06/0.2665, allocations: 2.969 kB / 428.5 MB, free: 38.14 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.06e-05/0.2666, allocations: 1.688 kB / 428.5 MB, free: 38.14 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.578e-06/0.2666, allocations: 2.906 kB / 428.5 MB, free: 38.14 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.407e-05/0.2667, allocations: 50.27 kB / 428.5 MB, free: 38.13 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005905/0.2673, allocations: 0.8147 MB / 429.3 MB, free: 37.34 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001391/0.2674, allocations: 52.38 kB / 429.4 MB, free: 37.32 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.086e-05/0.2675, allocations: 19.36 kB / 429.4 MB, free: 37.31 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.43e-05/0.2675, allocations: 3.281 kB / 429.4 MB, free: 37.31 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.183e-05/0.2675, allocations: 37.09 kB / 429.4 MB, free: 37.27 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 1.312e-06/0.2675, allocations: 0 / 429.4 MB, free: 37.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002038/0.2677, allocations: 122.7 kB / 429.6 MB, free: 37.19 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.788e-05/0.2677, allocations: 77.11 kB / 429.6 MB, free: 37.09 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001003/0.2679, allocations: 176.2 kB / 429.8 MB, free: 36.99 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.845e-06/0.2679, allocations: 25.7 kB / 429.8 MB, free: 36.96 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.239e-05/0.2679, allocations: 116.5 kB / 429.9 MB, free: 36.86 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.127e-05/0.2679, allocations: 22.59 kB / 430 MB, free: 36.84 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.003e-05/0.268, allocations: 39.41 kB / 430 MB, free: 36.82 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.324e-05/0.268, allocations: 321.6 kB / 430.3 MB, free: 36.51 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.923e-05/0.2681, allocations: 20.58 kB / 430.3 MB, free: 36.51 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.414e-05/0.2681, allocations: 53.08 kB / 430.4 MB, free: 36.47 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.828e-05/0.2682, allocations: 129.8 kB / 430.5 MB, free: 36.36 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.2682, allocations: 3.188 kB / 430.5 MB, free: 36.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001541/0.2684, allocations: 139.9 kB / 430.7 MB, free: 36.28 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.361e-05/0.2684, allocations: 38.45 kB / 430.7 MB, free: 36.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.2684, allocations: 6.75 kB / 430.7 MB, free: 36.24 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.425e-05/0.2684, allocations: 2.938 kB / 430.7 MB, free: 36.24 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.006e-05/0.2685, allocations: 15.62 kB / 430.7 MB, free: 36.24 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.723e-06/0.2685, allocations: 7.5 kB / 430.7 MB, free: 36.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.643e-05/0.2686, allocations: 10.59 kB / 430.7 MB, free: 36.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.33e-05/0.2686, allocations: 5.719 kB / 430.7 MB, free: 36.23 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 5 (T1.firingCon,T1.fire_,T1.activation.NoTokens,T1.activation.active,T1.fire) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * 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 8.2e-05/0.2687, allocations: 152 kB / 430.9 MB, free: 36.08 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.035e-05/0.2687, allocations: 9.719 kB / 430.9 MB, free: 36.08 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001553/0.2689, allocations: 122.6 kB / 431 MB, free: 36 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.346e-06/0.2689, allocations: 0 / 431 MB, free: 36 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/0.2689, allocations: 11.28 kB / 431 MB, free: 35.99 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.397e-06/0.2689, allocations: 0 / 431 MB, free: 35.99 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.38e-05/0.269, allocations: 191 kB / 431.2 MB, free: 35.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.269, allocations: 6.172 kB / 431.2 MB, free: 35.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.899e-05/0.269, allocations: 2.875 kB / 431.2 MB, free: 35.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.269, allocations: 0 / 431.2 MB, free: 35.8 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.805e-06/0.2691, allocations: 3.938 kB / 431.2 MB, free: 35.8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.2691, allocations: 0 / 431.2 MB, free: 35.8 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.2691, allocations: 2.812 kB / 431.2 MB, free: 35.8 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001124/0.2692, allocations: 127.7 kB / 431.4 MB, free: 35.7 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.211e-05/0.2692, allocations: 94.3 kB / 431.4 MB, free: 35.59 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.957e-05/0.2692, allocations: 7.188 kB / 431.5 MB, free: 35.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.951e-05/0.2693, allocations: 2.844 kB / 431.5 MB, free: 35.59 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.065e-05/0.2693, allocations: 4.094 kB / 431.5 MB, free: 35.58 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.669e-06/0.2693, allocations: 2.75 kB / 431.5 MB, free: 35.58 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.654e-05/0.2694, allocations: 126.9 kB / 431.6 MB, free: 35.5 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.2694, allocations: 3.938 kB / 431.6 MB, free: 35.5 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002715/0.2697, allocations: 33.14 kB / 431.6 MB, free: 35.5 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (T1.fire,T1.activation.active,T1.activation.NoTokens) * Number of discrete states: 2 (T1.activation.active,T1.activation.NoTokens) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * 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 Backend phase and start with SimCode phase: time 0.0003022/0.27, allocations: 0.6746 MB / 432.3 MB, free: 34.86 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000143/0.2702, allocations: 109.5 kB / 432.4 MB, free: 34.79 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.2702, allocations: 0 / 432.4 MB, free: 34.79 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.82e-05/0.2702, allocations: 75.73 kB / 432.5 MB, free: 34.73 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002148/0.2704, allocations: 14.19 kB / 432.5 MB, free: 34.72 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001167/0.2716, allocations: 1.589 MB / 434.1 MB, free: 33.45 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001044/0.2717, allocations: 0.6998 MB / 434.8 MB, free: 32.75 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001016/0.2718, allocations: 45.16 kB / 434.8 MB, free: 32.74 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.378e-05/0.2719, allocations: 35.92 kB / 434.9 MB, free: 32.72 MB / 350.1 MB Notification: Performance of SimCode: time 6.01e-07/0.2719, allocations: 0 / 434.9 MB, free: 32.72 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03669/0.3086, allocations: 2.291 MB / 437.2 MB, free: 32.27 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.729/6.037, allocations: 7.547 kB / 437.2 MB, free: 32.27 MB / 350.1 MB (rm -f PNlib_PNlib.Examples.ConTest.SingleTC.pipe ; mkfifo PNlib_PNlib.Examples.ConTest.SingleTC.pipe ; head -c 1048576 < PNlib_PNlib.Examples.ConTest.SingleTC.pipe >> ../files/PNlib_PNlib.Examples.ConTest.SingleTC.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PNlib_PNlib.Examples.ConTest.SingleTC_res.mat --tempDir=temp_PNlib_PNlib_Examples_ConTest_SingleTC_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PNlib_PNlib_Examples_ConTest_SingleTC.fmu > PNlib_PNlib.Examples.ConTest.SingleTC.pipe 2>&1) diffSimulationResults("PNlib_PNlib.Examples.ConTest.SingleTC_res.mat","/mnt/ReferenceFiles/PNlib/ReferenceFiles/PNlib.Examples.ConTest.SingleTC.mat","../files/PNlib_PNlib.Examples.ConTest.SingleTC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches