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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001193/0.001193, allocations: 79.69 kB / 19.25 MB, free: 0.6211 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009738/0.0009738, allocations: 162 kB / 22.56 MB, free: 1.965 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8952/0.8952, allocations: 177.1 MB / 202.9 MB, free: 5.715 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib master/package.mo): time 0.04737/0.04737, allocations: 12.65 MB / 272 MB, free: 0.6602 MB / 250.7 MB " [Timeout remaining time 180] Using package PNlib with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.705e-06/2.705e-06, allocations: 0 / 402.4 MB, free: 10.6 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.686e-05/2.957e-05, allocations: 2.281 kB / 402.4 MB, free: 10.59 MB / 378.7 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.ConTest.SingleTC): time 0.002468/0.002497, allocations: 1.019 MB / 403.5 MB, free: 9.57 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009711/0.003469, allocations: 371.1 kB / 403.8 MB, free: 9.207 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001394/0.003608, allocations: 7.938 kB / 403.8 MB, free: 9.199 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002042/0.003812, allocations: 51.69 kB / 403.9 MB, free: 9.148 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003276/0.00414, allocations: 55.59 kB / 403.9 MB, free: 9.094 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003373/0.004477, allocations: 119.7 kB / 404 MB, free: 8.977 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004374/0.004914, allocations: 315.3 kB / 404.4 MB, free: 8.668 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.361e-05/0.004988, allocations: 12.58 kB / 404.4 MB, free: 8.656 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000322/0.00531, allocations: 207.6 kB / 404.6 MB, free: 8.453 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001243/0.005434, allocations: 35.83 kB / 404.6 MB, free: 8.418 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.585e-05/0.00546, allocations: 0 / 404.6 MB, free: 8.418 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001817/0.005642, allocations: 63.88 kB / 404.7 MB, free: 8.355 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000108/0.00575, allocations: 35.77 kB / 404.7 MB, free: 8.32 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 4.631e-05/0.005796, allocations: 11.94 kB / 404.7 MB, free: 8.309 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002815/0.006078, allocations: 123.7 kB / 404.8 MB, free: 8.188 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.006083, allocations: 0 / 404.8 MB, free: 8.188 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.904e-06/0.006085, allocations: 4 kB / 404.8 MB, free: 8.184 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.501e-06/0.00609, allocations: 0 / 404.8 MB, free: 8.184 MB / 378.7 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.0005312/0.006621, allocations: 363.3 kB / 405.2 MB, free: 7.793 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.745e-05/0.006669, allocations: 12.03 kB / 405.2 MB, free: 7.781 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.748e-05/0.006706, allocations: 38.75 kB / 405.2 MB, free: 7.734 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.303e-05/0.006749, allocations: 8.891 kB / 405.2 MB, free: 7.727 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001697/0.006919, allocations: 141.5 kB / 405.4 MB, free: 7.566 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.08e-05/0.00695, allocations: 8.375 kB / 405.4 MB, free: 7.559 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.085e-05/0.006971, allocations: 8.359 kB / 405.4 MB, free: 7.551 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002238/0.007194, allocations: 139.7 kB / 405.5 MB, free: 7.387 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.142e-05/0.007206, allocations: 0 / 405.5 MB, free: 7.387 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.414e-05/0.00722, allocations: 8 kB / 405.5 MB, free: 7.379 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.452e-06/0.007226, allocations: 0 / 405.5 MB, free: 7.379 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000114/0.00734, allocations: 77.61 kB / 405.6 MB, free: 7.297 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008281/0.008168, allocations: 0.637 MB / 406.3 MB, free: 6.602 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002582/0.008427, allocations: 76.33 kB / 406.3 MB, free: 6.512 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.642e-05/0.008483, allocations: 46.69 kB / 406.4 MB, free: 6.457 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.057e-05/0.008504, allocations: 0 / 406.4 MB, free: 6.457 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.775e-05/0.008541, allocations: 38.5 kB / 406.4 MB, free: 6.41 MB / 378.7 MB Notification: Performance of pre-optimization done (n=6): time 1.583e-06/0.008543, allocations: 0 / 406.4 MB, free: 6.41 MB / 378.7 MB Notification: Performance of matching and sorting (n=6): time 0.000295/0.008838, allocations: 174.7 kB / 406.6 MB, free: 6.215 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.708e-05/0.008895, allocations: 81.05 kB / 406.7 MB, free: 6.117 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001946/0.00909, allocations: 178.2 kB / 406.8 MB, free: 5.934 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.801e-05/0.009108, allocations: 25.81 kB / 406.9 MB, free: 5.902 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.907e-05/0.009207, allocations: 123.9 kB / 407 MB, free: 5.777 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.996e-05/0.009227, allocations: 15.91 kB / 407 MB, free: 5.762 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.915e-05/0.009286, allocations: 25.7 kB / 407 MB, free: 5.73 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000123/0.009409, allocations: 326.8 kB / 407.3 MB, free: 5.402 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.911e-05/0.009478, allocations: 49.69 kB / 407.4 MB, free: 5.348 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.469e-05/0.009553, allocations: 85.86 kB / 407.5 MB, free: 5.242 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001298/0.009682, allocations: 135.6 kB / 407.6 MB, free: 5.082 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.009685, allocations: 0 / 407.6 MB, free: 5.082 MB / 378.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.00034/0.01003, allocations: 172.9 kB / 407.8 MB, free: 4.895 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.734e-05/0.01007, allocations: 33.7 kB / 407.8 MB, free: 4.855 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.506e-06/0.01008, allocations: 0 / 407.8 MB, free: 4.855 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.972e-05/0.0101, allocations: 4 kB / 407.8 MB, free: 4.852 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.78e-05/0.01017, allocations: 20.3 kB / 407.8 MB, free: 4.832 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.017e-06/0.01018, allocations: 7.938 kB / 407.8 MB, free: 4.824 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.789e-05/0.01024, allocations: 15.89 kB / 407.9 MB, free: 4.809 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.764e-05/0.01025, allocations: 8 kB / 407.9 MB, free: 4.801 MB / 378.7 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 9.728e-05/0.01035, allocations: 143.5 kB / 408 MB, free: 4.645 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.585e-05/0.01038, allocations: 11.95 kB / 408 MB, free: 4.633 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002041/0.01058, allocations: 151.3 kB / 408.2 MB, free: 4.465 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.01058, allocations: 0 / 408.2 MB, free: 4.465 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.155e-06/0.01059, allocations: 3.938 kB / 408.2 MB, free: 4.461 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.0106, allocations: 4 kB / 408.2 MB, free: 4.457 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000132/0.01073, allocations: 160.7 kB / 408.3 MB, free: 4.258 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.01073, allocations: 0 / 408.3 MB, free: 4.258 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.697e-05/0.01075, allocations: 7.984 kB / 408.3 MB, free: 4.25 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.01075, allocations: 0 / 408.3 MB, free: 4.25 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.843e-06/0.01076, allocations: 0 / 408.3 MB, free: 4.25 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.01076, allocations: 0 / 408.3 MB, free: 4.25 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.389e-06/0.01076, allocations: 7.938 kB / 408.3 MB, free: 4.242 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001131/0.01087, allocations: 160.4 kB / 408.5 MB, free: 4.055 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.816e-05/0.01089, allocations: 15.84 kB / 408.5 MB, free: 4.039 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.673e-05/0.01091, allocations: 7.984 kB / 408.5 MB, free: 4.031 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.379e-05/0.01092, allocations: 0 / 408.5 MB, free: 4.031 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.784e-05/0.01095, allocations: 11.94 kB / 408.5 MB, free: 4.02 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.297e-06/0.01095, allocations: 0 / 408.5 MB, free: 4.02 MB / 378.7 MB Notification: Performance of sorting global known variables: time 6.882e-05/0.01102, allocations: 123.2 kB / 408.7 MB, free: 3.898 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.01102, allocations: 0 / 408.7 MB, free: 3.898 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000166/0.01119, allocations: 27.98 kB / 408.7 MB, free: 3.871 MB / 378.7 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.0003648/0.01155, allocations: 0.7016 MB / 409.4 MB, free: 3.125 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001738/0.01173, allocations: 166.7 kB / 409.6 MB, free: 2.938 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.01173, allocations: 0 / 409.6 MB, free: 2.938 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.382e-05/0.01177, allocations: 101.1 kB / 409.7 MB, free: 2.82 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001926/0.01197, allocations: 24.19 kB / 409.7 MB, free: 2.797 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001351/0.01332, allocations: 1.744 MB / 411.4 MB, free: 0.8984 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.71e-05/0.01337, allocations: 84.84 kB / 411.5 MB, free: 0.7969 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 8.483e-05/0.01346, allocations: 52.34 kB / 411.6 MB, free: 0.7461 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.545e-05/0.01351, allocations: 36.48 kB / 411.6 MB, free: 0.7109 MB / 378.7 MB Notification: Performance of SimCode: time 4.3e-07/0.01352, allocations: 0 / 411.6 MB, free: 0.7109 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01612/0.02963, allocations: 3.007 MB / 414.6 MB, free: 13.81 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.807/6.836, allocations: 10.8 kB / 414.6 MB, free: 13.8 MB / 394.7 MB " [Timeout remaining time 653] (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 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 PNlib_PNlib_Examples_ConTest_SingleTC.fmu > PNlib_PNlib.Examples.ConTest.SingleTC.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PNlib_PNlib.Examples.ConTest.SingleTC_res.mat","/mnt/ReferenceFiles/PNlib/ReferenceFiles/PNlib.Examples.ConTest.SingleTC.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PNlib_PNlib.Examples.ConTest.SingleTC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.690455333329737]