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.006859/0.006859, allocations: 101.3 kB / 15.73 MB, free: 6.035 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.001294/0.001294, allocations: 189.4 kB / 16.67 MB, free: 5.969 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.493/1.493, 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.2406/0.2406, allocations: 16.75 MB / 307.3 MB, free: 14.82 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001294/0.001294, allocations: 70.84 kB / 425.8 MB, free: 37.44 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1287/0.13, allocations: 53.48 MB / 479.3 MB, free: 10.99 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.ConTest.SingleTC): time 0.002328/0.1324, allocations: 1.063 MB / 480.4 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001051/0.1334, allocations: 396.4 kB / 480.8 MB, free: 9.852 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001308/0.1336, allocations: 3.25 kB / 480.8 MB, free: 9.852 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000171/0.1338, allocations: 46.75 kB / 480.8 MB, free: 9.812 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002663/0.1341, allocations: 47.81 kB / 480.9 MB, free: 9.773 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002389/0.1343, allocations: 123.2 kB / 481 MB, free: 9.676 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003243/0.1346, allocations: 311.1 kB / 481.3 MB, free: 9.492 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.329e-05/0.1347, allocations: 25.64 kB / 481.3 MB, free: 9.477 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001518/0.1349, allocations: 143.8 kB / 481.4 MB, free: 9.391 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.837e-05/0.135, allocations: 54.06 kB / 481.5 MB, free: 9.348 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.741e-05/0.135, allocations: 3.812 kB / 481.5 MB, free: 9.348 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001334/0.1351, allocations: 60.39 kB / 481.6 MB, free: 9.316 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.628e-05/0.1352, allocations: 27.56 kB / 481.6 MB, free: 9.297 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.738e-05/0.1353, allocations: 33.22 kB / 481.6 MB, free: 9.27 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002026/0.1355, allocations: 120.5 kB / 481.7 MB, free: 9.191 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.1355, allocations: 0 / 481.7 MB, free: 9.191 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.825e-06/0.1355, allocations: 0 / 481.7 MB, free: 9.191 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.6e-06/0.1355, allocations: 0 / 481.7 MB, free: 9.191 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.0004677/0.136, allocations: 429.4 kB / 482.2 MB, free: 8.75 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.325e-05/0.136, allocations: 12.77 kB / 482.2 MB, free: 8.746 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.52e-05/0.1361, allocations: 37.72 kB / 482.2 MB, free: 8.703 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.569e-05/0.1361, allocations: 14.53 kB / 482.2 MB, free: 8.695 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001747/0.1363, allocations: 205.6 kB / 482.4 MB, free: 8.469 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.294e-05/0.1363, allocations: 13.69 kB / 482.4 MB, free: 8.457 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.77e-05/0.1364, allocations: 5.625 kB / 482.4 MB, free: 8.457 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001905/0.1366, allocations: 102.4 kB / 482.5 MB, free: 8.359 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.458e-06/0.1366, allocations: 0 / 482.5 MB, free: 8.359 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.364e-05/0.1366, allocations: 5.562 kB / 482.5 MB, free: 8.355 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.861e-06/0.1366, allocations: 5.562 kB / 482.6 MB, free: 8.352 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001032/0.1367, allocations: 48.83 kB / 482.6 MB, free: 8.328 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006285/0.1374, allocations: 0.816 MB / 483.4 MB, free: 7.461 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001585/0.1375, allocations: 58.38 kB / 483.5 MB, free: 7.414 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.284e-05/0.1376, allocations: 20.83 kB / 483.5 MB, free: 7.398 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.803e-05/0.1376, allocations: 5.328 kB / 483.5 MB, free: 7.395 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.574e-05/0.1376, allocations: 31.94 kB / 483.5 MB, free: 7.355 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 1.152e-06/0.1376, allocations: 0 / 483.5 MB, free: 7.355 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002305/0.1379, allocations: 120.6 kB / 483.6 MB, free: 7.258 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.86e-05/0.1379, allocations: 83.17 kB / 483.7 MB, free: 7.16 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001153/0.138, allocations: 173.7 kB / 483.9 MB, free: 7.02 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.568e-06/0.138, allocations: 28.98 kB / 483.9 MB, free: 6.988 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.264e-05/0.1381, allocations: 113.2 kB / 484 MB, free: 6.879 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.21e-05/0.1381, allocations: 14.09 kB / 484.1 MB, free: 6.867 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.236e-05/0.1382, allocations: 35.48 kB / 484.1 MB, free: 6.836 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.118e-05/0.1382, allocations: 322 kB / 484.4 MB, free: 6.516 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.834e-05/0.1383, allocations: 18.02 kB / 484.4 MB, free: 6.508 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.67e-05/0.1383, allocations: 55.72 kB / 484.5 MB, free: 6.453 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.933e-05/0.1384, allocations: 128.4 kB / 484.6 MB, free: 6.324 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.1384, allocations: 0 / 484.6 MB, free: 6.324 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001679/0.1386, allocations: 144.8 kB / 484.7 MB, free: 6.219 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.615e-05/0.1387, allocations: 39.12 kB / 484.8 MB, free: 6.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.5e-06/0.1387, allocations: 5.312 kB / 484.8 MB, free: 6.176 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.325e-05/0.1387, allocations: 2.75 kB / 484.8 MB, free: 6.176 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.319e-05/0.1387, allocations: 11 kB / 484.8 MB, free: 6.176 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.515e-06/0.1388, allocations: 5.312 kB / 484.8 MB, free: 6.172 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.036e-05/0.1388, allocations: 15.97 kB / 484.8 MB, free: 6.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.394e-05/0.1388, allocations: 8.109 kB / 484.8 MB, free: 6.156 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.864e-05/0.1389, allocations: 151.9 kB / 485 MB, free: 6 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.19e-05/0.1389, allocations: 14.77 kB / 485 MB, free: 5.992 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001634/0.1391, allocations: 117.1 kB / 485.1 MB, free: 5.891 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.1391, allocations: 5.312 kB / 485.1 MB, free: 5.887 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/0.1391, allocations: 0 / 485.1 MB, free: 5.887 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.1391, allocations: 0 / 485.1 MB, free: 5.887 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.881e-05/0.1392, allocations: 195.4 kB / 485.3 MB, free: 5.664 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.1392, allocations: 0 / 485.3 MB, free: 5.664 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.911e-05/0.1393, allocations: 2.75 kB / 485.3 MB, free: 5.664 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.1393, allocations: 5.312 kB / 485.3 MB, free: 5.66 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.187e-06/0.1393, allocations: 9.312 kB / 485.3 MB, free: 5.652 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.1393, allocations: 256 / 485.3 MB, free: 5.652 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.1393, allocations: 0 / 485.3 MB, free: 5.652 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001217/0.1394, allocations: 134.8 kB / 485.4 MB, free: 5.527 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.528e-05/0.1395, allocations: 87.89 kB / 485.5 MB, free: 5.426 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.088e-05/0.1395, allocations: 5.375 kB / 485.5 MB, free: 5.422 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.043e-05/0.1395, allocations: 1.625 kB / 485.5 MB, free: 5.422 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.619e-05/0.1396, allocations: 1.281 kB / 485.5 MB, free: 5.422 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.942e-06/0.1396, allocations: 10.22 kB / 485.6 MB, free: 5.414 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.319e-05/0.1396, allocations: 132.5 kB / 485.7 MB, free: 5.309 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1396, allocations: 1.656 kB / 485.7 MB, free: 5.309 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002262/0.1399, allocations: 22.44 kB / 485.7 MB, free: 5.305 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.0003109/0.1402, allocations: 0.6777 MB / 486.4 MB, free: 4.645 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000169/0.1404, allocations: 117.1 kB / 486.5 MB, free: 4.551 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1404, allocations: 0 / 486.5 MB, free: 4.551 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.59e-05/0.1404, allocations: 71.53 kB / 486.6 MB, free: 4.48 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002446/0.1407, allocations: 13.52 kB / 486.6 MB, free: 4.473 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001411/0.1421, allocations: 1.58 MB / 488.2 MB, free: 3.039 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001837/0.1423, allocations: 0.7023 MB / 488.9 MB, free: 2.328 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001068/0.1424, allocations: 45.22 kB / 488.9 MB, free: 2.305 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.973e-05/0.1425, allocations: 39.94 kB / 488.9 MB, free: 2.273 MB / 350.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1425, allocations: 4 kB / 488.9 MB, free: 2.27 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02249/0.165, allocations: 2.362 MB / 491.3 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.623/7.788, allocations: 5.578 kB / 491.3 MB, free: 0.6836 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PNlib_PNlib.Examples.ConTest.SingleTC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches