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 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.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.0009866/0.0009867, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.0009783/0.0009783, allocations: 192.7 kB / 16.25 MB, free: 6.633 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.283/1.283, allocations: 222.9 MB / 239.9 MB, free: 4.504 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.1784/0.1784, allocations: 16.76 MB / 306.8 MB, free: 15.02 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001275/0.001275, allocations: 59.91 kB / 371.2 MB, free: 3.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2466/0.2479, allocations: 53.46 MB / 424.7 MB, free: 39.25 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.ConTest.SingleTC): time 0.002299/0.2503, allocations: 1.141 MB / 425.8 MB, free: 38.84 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000635/0.2509, allocations: 400.1 kB / 426.2 MB, free: 38.71 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.753e-05/0.251, allocations: 3.844 kB / 426.2 MB, free: 38.71 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001447/0.2512, allocations: 44.58 kB / 426.3 MB, free: 38.7 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002205/0.2514, allocations: 35.41 kB / 426.3 MB, free: 38.69 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001801/0.2516, allocations: 111.1 kB / 426.4 MB, free: 38.68 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002473/0.2519, allocations: 310.2 kB / 426.7 MB, free: 38.65 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.191e-05/0.2519, allocations: 34.45 kB / 426.8 MB, free: 38.64 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001086/0.2521, allocations: 141.8 kB / 426.9 MB, free: 38.62 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.813e-05/0.2521, allocations: 60.33 kB / 427 MB, free: 38.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.571e-05/0.2522, allocations: 5.344 kB / 427 MB, free: 38.59 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001058/0.2523, allocations: 57.84 kB / 427 MB, free: 38.59 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.828e-05/0.2524, allocations: 20.94 kB / 427 MB, free: 38.58 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.724e-05/0.2524, allocations: 39.47 kB / 427.1 MB, free: 38.56 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001439/0.2525, allocations: 113.4 kB / 427.2 MB, free: 38.54 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.2526, allocations: 0 / 427.2 MB, free: 38.54 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.522e-06/0.2526, allocations: 1.344 kB / 427.2 MB, free: 38.54 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.71e-06/0.2526, allocations: 0 / 427.2 MB, free: 38.54 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.0004087/0.253, allocations: 434.8 kB / 427.6 MB, free: 38.12 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.639e-05/0.253, allocations: 15.89 kB / 427.6 MB, free: 38.11 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.023e-05/0.2531, allocations: 40.45 kB / 427.7 MB, free: 38.07 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.859e-05/0.2531, allocations: 15.66 kB / 427.7 MB, free: 38.07 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001298/0.2532, allocations: 203.2 kB / 427.9 MB, free: 37.85 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.002e-05/0.2533, allocations: 11.09 kB / 427.9 MB, free: 37.85 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.261e-05/0.2533, allocations: 2.844 kB / 427.9 MB, free: 37.85 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001662/0.2535, allocations: 109 kB / 428 MB, free: 37.78 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.726e-06/0.2535, allocations: 0 / 428 MB, free: 37.78 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.219e-05/0.2535, allocations: 2.938 kB / 428 MB, free: 37.78 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.498e-06/0.2535, allocations: 3.938 kB / 428 MB, free: 37.77 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.919e-05/0.2536, allocations: 48.25 kB / 428.1 MB, free: 37.77 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005195/0.2541, allocations: 0.7277 MB / 428.8 MB, free: 37.07 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001593/0.2543, allocations: 60.44 kB / 428.8 MB, free: 37.04 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.56e-05/0.2543, allocations: 23.16 kB / 428.9 MB, free: 37.02 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.877e-05/0.2544, allocations: 2.875 kB / 428.9 MB, free: 37.02 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.615e-05/0.2544, allocations: 31.88 kB / 428.9 MB, free: 36.98 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 1.283e-06/0.2544, allocations: 0 / 428.9 MB, free: 36.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.000232/0.2546, allocations: 124.9 kB / 429 MB, free: 36.91 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.421e-05/0.2547, allocations: 81.58 kB / 429.1 MB, free: 36.81 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001264/0.2548, allocations: 167.3 kB / 429.3 MB, free: 36.71 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.889e-06/0.2548, allocations: 32.36 kB / 429.3 MB, free: 36.68 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.151e-05/0.2549, allocations: 116.2 kB / 429.4 MB, free: 36.58 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.304e-05/0.2549, allocations: 15.44 kB / 429.4 MB, free: 36.57 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.2e-05/0.255, allocations: 33.7 kB / 429.5 MB, free: 36.55 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.834e-05/0.255, allocations: 324.2 kB / 429.8 MB, free: 36.24 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.834e-05/0.2551, allocations: 20.16 kB / 429.8 MB, free: 36.24 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.564e-05/0.2551, allocations: 60.75 kB / 429.9 MB, free: 36.2 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.192e-05/0.2552, allocations: 125.1 kB / 430 MB, free: 36.09 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.2552, allocations: 0 / 430 MB, free: 36.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001565/0.2554, allocations: 151.6 kB / 430.1 MB, free: 36 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.352e-05/0.2554, allocations: 31.42 kB / 430.2 MB, free: 35.97 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.2554, allocations: 3.938 kB / 430.2 MB, free: 35.97 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.154e-05/0.2554, allocations: 2.906 kB / 430.2 MB, free: 35.97 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.927e-05/0.2555, allocations: 14.84 kB / 430.2 MB, free: 35.97 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.801e-06/0.2555, allocations: 6.906 kB / 430.2 MB, free: 35.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.612e-05/0.2555, allocations: 10 kB / 430.2 MB, free: 35.96 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.117e-05/0.2556, allocations: 2.812 kB / 430.2 MB, free: 35.96 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 7.199e-05/0.2556, allocations: 156.7 kB / 430.4 MB, free: 35.81 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.021e-05/0.2557, allocations: 21.55 kB / 430.4 MB, free: 35.8 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001489/0.2558, allocations: 118.3 kB / 430.5 MB, free: 35.72 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.963e-06/0.2558, allocations: 2.75 kB / 430.5 MB, free: 35.72 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.526e-06/0.2558, allocations: 0 / 430.5 MB, free: 35.72 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.125e-06/0.2559, allocations: 3.531 kB / 430.5 MB, free: 35.72 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.4e-05/0.2559, allocations: 187.7 kB / 430.7 MB, free: 35.53 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.256, allocations: 4 kB / 430.7 MB, free: 35.53 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.719e-05/0.256, allocations: 3.188 kB / 430.7 MB, free: 35.53 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.256, allocations: 3.375 kB / 430.7 MB, free: 35.53 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.835e-06/0.256, allocations: 3.938 kB / 430.7 MB, free: 35.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.256, allocations: 4 kB / 430.7 MB, free: 35.52 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.256, allocations: 0 / 430.7 MB, free: 35.52 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001068/0.2561, allocations: 134.8 kB / 430.8 MB, free: 35.42 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.072e-05/0.2561, allocations: 87.8 kB / 430.9 MB, free: 35.32 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.977e-05/0.2562, allocations: 3.938 kB / 430.9 MB, free: 35.31 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.939e-05/0.2562, allocations: 2.844 kB / 430.9 MB, free: 35.31 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.136e-05/0.2562, allocations: 3.375 kB / 430.9 MB, free: 35.31 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.829e-06/0.2562, allocations: 14.19 kB / 430.9 MB, free: 35.3 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.539e-05/0.2563, allocations: 128.7 kB / 431.1 MB, free: 35.22 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2563, allocations: 0 / 431.1 MB, free: 35.22 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002112/0.2565, allocations: 24.38 kB / 431.1 MB, free: 35.22 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.0002808/0.2568, allocations: 0.6759 MB / 431.8 MB, free: 34.59 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001442/0.257, allocations: 113.4 kB / 431.9 MB, free: 34.52 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.257, allocations: 0 / 431.9 MB, free: 34.52 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.893e-05/0.257, allocations: 76.06 kB / 432 MB, free: 34.45 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002201/0.2573, allocations: 5.938 kB / 432 MB, free: 34.45 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001185/0.2584, allocations: 1.603 MB / 433.6 MB, free: 33.2 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001174/0.2586, allocations: 0.7045 MB / 434.3 MB, free: 32.5 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001006/0.2587, allocations: 47.45 kB / 434.3 MB, free: 32.48 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.373e-05/0.2587, allocations: 38.3 kB / 434.3 MB, free: 32.48 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2588, allocations: 0 / 434.3 MB, free: 32.48 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01051/0.2693, allocations: 2.214 MB / 436.6 MB, free: 32.15 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001179/0.2694, allocations: 170 kB / 436.7 MB, free: 31.9 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.866/2.136, allocations: 0 / 436.7 MB, free: 31.9 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