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.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.001913/0.001913, allocations: 109.2 kB / 18.94 MB, free: 2.949 MB / 14.72 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.002339/0.002339, allocations: 218.7 kB / 22.26 MB, free: 5.125 MB / 14.72 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 1.468/1.468, allocations: 230.6 MB / 256 MB, free: 8.012 MB / 206.1 MB " [Timeout remaining time 178] 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.08269/0.08269, allocations: 16.94 MB / 329.4 MB, free: 2.289 MB / 254.1 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.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"}) [Timeout 660] "Notification: PNlib requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002071/0.002071, allocations: 63.91 kB / 459.8 MB, free: 2.301 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1117/0.1138, allocations: 57.64 MB / 0.5053 GB, free: 8.578 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.SingleTD): time 0.002578/0.1163, allocations: 1.062 MB / 0.5063 GB, free: 7.512 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008027/0.1171, allocations: 271.7 kB / 0.5066 GB, free: 7.246 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001229/0.1173, allocations: 4 kB / 0.5066 GB, free: 7.242 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002307/0.1175, allocations: 43.64 kB / 0.5066 GB, free: 7.199 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003488/0.1178, allocations: 47.72 kB / 0.5067 GB, free: 7.152 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002798/0.1181, allocations: 79.83 kB / 0.5067 GB, free: 7.074 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004717/0.1186, allocations: 231.5 kB / 0.507 GB, free: 6.848 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.444e-05/0.1187, allocations: 16.58 kB / 0.507 GB, free: 6.832 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002608/0.1189, allocations: 119.6 kB / 0.5071 GB, free: 6.715 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001061/0.119, allocations: 43.61 kB / 0.5071 GB, free: 6.672 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.791e-05/0.1191, allocations: 4 kB / 0.5071 GB, free: 6.668 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.969e-05/0.1191, allocations: 15.98 kB / 0.5072 GB, free: 6.652 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.956e-05/0.1192, allocations: 27.8 kB / 0.5072 GB, free: 6.625 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.719e-05/0.1193, allocations: 43.67 kB / 0.5072 GB, free: 6.582 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002446/0.1196, allocations: 83.88 kB / 0.5073 GB, free: 6.5 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.1196, allocations: 0 / 0.5073 GB, free: 6.5 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.1196, allocations: 0 / 0.5073 GB, free: 6.5 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.434e-06/0.1196, allocations: 0 / 0.5073 GB, free: 6.5 MB / 382.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.0008349/0.1204, allocations: 379.4 kB / 0.5077 GB, free: 6.094 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.037e-05/0.1205, allocations: 8.031 kB / 0.5077 GB, free: 6.086 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.511e-05/0.1205, allocations: 38.75 kB / 0.5077 GB, free: 6.039 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.156e-05/0.1206, allocations: 12.89 kB / 0.5077 GB, free: 6.027 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002642/0.1209, allocations: 143.9 kB / 0.5079 GB, free: 5.863 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.769e-05/0.1209, allocations: 15.91 kB / 0.5079 GB, free: 5.848 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.226e-05/0.1209, allocations: 4 kB / 0.5079 GB, free: 5.844 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004307/0.1214, allocations: 130.8 kB / 0.508 GB, free: 5.691 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.322e-05/0.1214, allocations: 3.938 kB / 0.508 GB, free: 5.688 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.284e-05/0.1214, allocations: 4 kB / 0.508 GB, free: 5.684 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.468e-06/0.1214, allocations: 4 kB / 0.508 GB, free: 5.68 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003193/0.1217, allocations: 59.89 kB / 0.5081 GB, free: 5.621 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001205/0.1229, allocations: 0.731 MB / 0.5088 GB, free: 4.828 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002728/0.1232, allocations: 81.22 kB / 0.5089 GB, free: 4.73 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001351/0.1233, allocations: 45.62 kB / 0.5089 GB, free: 4.68 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.234e-05/0.1234, allocations: 0 / 0.5089 GB, free: 4.68 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003341/0.1237, allocations: 93.03 kB / 0.509 GB, free: 4.57 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 1.613e-06/0.1237, allocations: 0 / 0.509 GB, free: 4.57 MB / 382.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004983/0.1242, allocations: 151.3 kB / 0.5091 GB, free: 4.41 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001036/0.1243, allocations: 114.7 kB / 0.5092 GB, free: 4.273 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001957/0.1245, allocations: 179 kB / 0.5094 GB, free: 4.09 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.703e-05/0.1245, allocations: 25.7 kB / 0.5094 GB, free: 4.059 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001105/0.1246, allocations: 120.2 kB / 0.5096 GB, free: 3.934 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.894e-05/0.1247, allocations: 23.92 kB / 0.5096 GB, free: 3.91 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.181e-05/0.1247, allocations: 33.7 kB / 0.5096 GB, free: 3.871 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001537/0.1249, allocations: 330.8 kB / 0.5099 GB, free: 3.539 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.778e-05/0.125, allocations: 36.22 kB / 0.51 GB, free: 3.504 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001157/0.1251, allocations: 78.8 kB / 0.51 GB, free: 3.402 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003997/0.1255, allocations: 273.5 kB / 0.5103 GB, free: 3.086 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.1255, allocations: 0 / 0.5103 GB, free: 3.086 MB / 382.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003253/0.1258, allocations: 191 kB / 0.5105 GB, free: 2.887 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.162e-05/0.1258, allocations: 33.69 kB / 0.5105 GB, free: 2.848 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.605e-06/0.1259, allocations: 4 kB / 0.5105 GB, free: 2.844 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.468e-05/0.1259, allocations: 0 / 0.5105 GB, free: 2.844 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.757e-05/0.126, allocations: 16 kB / 0.5105 GB, free: 2.828 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.311e-05/0.126, allocations: 11.92 kB / 0.5105 GB, free: 2.816 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.245e-05/0.126, allocations: 11.95 kB / 0.5106 GB, free: 2.805 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.899e-05/0.1261, allocations: 8 kB / 0.5106 GB, free: 2.797 MB / 382.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.0001902/0.1263, allocations: 164.2 kB / 0.5107 GB, free: 2.621 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.813e-05/0.1263, allocations: 15.94 kB / 0.5107 GB, free: 2.605 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.948e-05/0.1263, allocations: 13.09 kB / 0.5107 GB, free: 2.586 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.1263, allocations: 0 / 0.5107 GB, free: 2.586 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.598e-06/0.1263, allocations: 3.938 kB / 0.5107 GB, free: 2.582 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.1263, allocations: 0 / 0.5107 GB, free: 2.582 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006306/0.127, allocations: 482.4 kB / 0.5112 GB, free: 2.055 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.127, allocations: 0 / 0.5112 GB, free: 2.055 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.304e-05/0.127, allocations: 4 kB / 0.5112 GB, free: 2.051 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.906e-06/0.127, allocations: 128 / 0.5112 GB, free: 2.051 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.208e-05/0.127, allocations: 4 kB / 0.5112 GB, free: 2.047 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.028e-06/0.127, allocations: 4 kB / 0.5112 GB, free: 2.043 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.127, allocations: 0 / 0.5112 GB, free: 2.043 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003694/0.1274, allocations: 316.5 kB / 0.5115 GB, free: 1.711 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.308e-05/0.1274, allocations: 7.953 kB / 0.5115 GB, free: 1.703 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.191e-05/0.1275, allocations: 11.98 kB / 0.5115 GB, free: 1.691 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000106/0.1276, allocations: 4.078 kB / 0.5115 GB, free: 1.688 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.088e-05/0.1276, allocations: 19.92 kB / 0.5116 GB, free: 1.668 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.302e-06/0.1276, allocations: 0 / 0.5116 GB, free: 1.668 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001305/0.1278, allocations: 124.2 kB / 0.5117 GB, free: 1.547 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1278, allocations: 0 / 0.5117 GB, free: 1.547 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003289/0.1281, allocations: 27.94 kB / 0.5117 GB, free: 1.52 MB / 382.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.0007729/0.1289, allocations: 0.846 MB / 0.5125 GB, free: 0.6406 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002945/0.1292, allocations: 135.7 kB / 0.5127 GB, free: 0.4961 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.1292, allocations: 4 kB / 0.5127 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001355/0.1293, allocations: 87.33 kB / 0.5127 GB, free: 404 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000347/0.1296, allocations: 15.98 kB / 0.5128 GB, free: 388 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1839/0.3136, allocations: 1.858 MB / 0.5146 GB, free: 14.04 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001614/0.3137, allocations: 0.705 MB / 0.5153 GB, free: 13.35 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 9.915e-05/0.3138, allocations: 27.3 kB / 0.5153 GB, free: 13.34 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.102e-05/0.3139, allocations: 40.44 kB / 0.5153 GB, free: 13.33 MB / 382.1 MB Notification: Performance of SimCode: time 9.82e-07/0.3139, allocations: 0.5312 kB / 0.5153 GB, free: 13.33 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02773/0.3416, allocations: 2.679 MB / 0.5179 GB, free: 13 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.09/11.43, allocations: 8.719 kB / 0.518 GB, free: 12.99 MB / 382.1 MB " [Timeout remaining time 648] (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 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 PNlib_PNlib_Examples_DisTest_SingleTD.fmu > PNlib_PNlib.Examples.DisTest.SingleTD.pipe 2>&1) [Timeout 52.5] diffSimulationResults("PNlib_PNlib.Examples.DisTest.SingleTD_res.mat","/mnt/ReferenceFiles/PNlib/ReferenceFiles/PNlib.Examples.DisTest.SingleTD.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PNlib_PNlib.Examples.DisTest.SingleTD.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: 14.133446882013232]