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.001762/0.001762, allocations: 115.4 kB / 17.16 MB, free: 5.895 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.002129/0.002129, allocations: 215 kB / 20.13 MB, free: 2.949 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.461/1.461, allocations: 230.6 MB / 253.5 MB, free: 15.11 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.07919/0.07919, allocations: 16.94 MB / 326.5 MB, free: 8.328 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PNlib.Examples.DisTest.SingleTD,fileNamePrefix="PNlib_PNlib_Examples_DisTest_SingleTD",fmuType="cs",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.001936/0.001936, allocations: 59.06 kB / 455.3 MB, free: 35.43 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09109/0.09302, allocations: 57.59 MB / 0.5009 GB, free: 9.648 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.SingleTD): time 0.002281/0.0953, allocations: 1.051 MB / 0.5019 GB, free: 8.594 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006995/0.096, allocations: 275.7 kB / 0.5022 GB, free: 8.324 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.164e-05/0.09609, allocations: 0 / 0.5022 GB, free: 8.324 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001557/0.09625, allocations: 43.66 kB / 0.5022 GB, free: 8.281 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002428/0.09649, allocations: 51.66 kB / 0.5022 GB, free: 8.23 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001581/0.09665, allocations: 71.84 kB / 0.5023 GB, free: 8.16 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003142/0.09697, allocations: 239.4 kB / 0.5025 GB, free: 7.926 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.41e-05/0.09703, allocations: 12.41 kB / 0.5026 GB, free: 7.91 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001559/0.09719, allocations: 115.6 kB / 0.5027 GB, free: 7.797 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.86e-05/0.09726, allocations: 55.58 kB / 0.5027 GB, free: 7.742 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.886e-05/0.09728, allocations: 4 kB / 0.5027 GB, free: 7.738 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.306e-05/0.09734, allocations: 8 kB / 0.5027 GB, free: 7.73 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.37e-05/0.09741, allocations: 23.86 kB / 0.5028 GB, free: 7.707 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 7.234e-05/0.09748, allocations: 43.61 kB / 0.5028 GB, free: 7.664 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001748/0.09766, allocations: 83.88 kB / 0.5029 GB, free: 7.582 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.09766, allocations: 0 / 0.5029 GB, free: 7.582 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.09766, allocations: 4 kB / 0.5029 GB, free: 7.578 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.491e-06/0.09767, allocations: 7.938 kB / 0.5029 GB, free: 7.57 MB / 366.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.0006685/0.09834, allocations: 432.6 kB / 0.5033 GB, free: 7.094 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.046e-05/0.09838, allocations: 12.03 kB / 0.5033 GB, free: 7.082 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.559e-05/0.0984, allocations: 4.188 kB / 0.5033 GB, free: 7.078 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.026e-05/0.09844, allocations: 42.73 kB / 0.5034 GB, free: 7.027 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.072e-05/0.09848, allocations: 8.891 kB / 0.5034 GB, free: 7.02 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002301/0.09871, allocations: 208.1 kB / 0.5036 GB, free: 6.777 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.113e-05/0.09874, allocations: 7.984 kB / 0.5036 GB, free: 6.77 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.382e-05/0.09876, allocations: 16 kB / 0.5036 GB, free: 6.754 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003043/0.09906, allocations: 126.7 kB / 0.5037 GB, free: 6.605 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.158e-05/0.09908, allocations: 3.938 kB / 0.5037 GB, free: 6.602 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.449e-05/0.09909, allocations: 8 kB / 0.5037 GB, free: 6.594 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-06/0.09909, allocations: 0 / 0.5037 GB, free: 6.594 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002178/0.09931, allocations: 67.89 kB / 0.5038 GB, free: 6.527 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001002/0.1003, allocations: 0.902 MB / 0.5047 GB, free: 5.52 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002014/0.1005, allocations: 85.16 kB / 0.5047 GB, free: 5.418 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.341e-05/0.1006, allocations: 25.7 kB / 0.5048 GB, free: 5.387 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.696e-06/0.1006, allocations: 0 / 0.5048 GB, free: 5.387 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002191/0.1008, allocations: 97.16 kB / 0.5049 GB, free: 5.273 MB / 366.1 MB Notification: Performance of pre-optimization done (n=9): time 1.142e-06/0.1008, allocations: 7.875 kB / 0.5049 GB, free: 5.266 MB / 366.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003745/0.1012, allocations: 155.3 kB / 0.505 GB, free: 5.102 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.502e-05/0.1013, allocations: 110.8 kB / 0.5051 GB, free: 4.969 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001721/0.1014, allocations: 171.1 kB / 0.5053 GB, free: 4.793 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.399e-05/0.1015, allocations: 37.64 kB / 0.5053 GB, free: 4.75 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.181e-05/0.1016, allocations: 116.2 kB / 0.5054 GB, free: 4.629 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.771e-05/0.1016, allocations: 23.84 kB / 0.5055 GB, free: 4.605 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.06e-05/0.1016, allocations: 41.7 kB / 0.5055 GB, free: 4.559 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001473/0.1018, allocations: 318.8 kB / 0.5058 GB, free: 4.238 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.26e-05/0.1019, allocations: 28.23 kB / 0.5058 GB, free: 4.211 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001261/0.102, allocations: 89.53 kB / 0.5059 GB, free: 4.102 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004051/0.1024, allocations: 269.5 kB / 0.5062 GB, free: 3.789 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.661e-06/0.1024, allocations: 3.938 kB / 0.5062 GB, free: 3.785 MB / 366.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003249/0.1027, allocations: 191 kB / 0.5064 GB, free: 3.586 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.604e-05/0.1028, allocations: 33.7 kB / 0.5064 GB, free: 3.547 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.1028, allocations: 0 / 0.5064 GB, free: 3.547 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.156e-05/0.1028, allocations: 4 kB / 0.5064 GB, free: 3.543 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.329e-05/0.1029, allocations: 15.98 kB / 0.5064 GB, free: 3.527 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.614e-06/0.1029, allocations: 8.125 kB / 0.5064 GB, free: 3.52 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.969e-05/0.103, allocations: 15.95 kB / 0.5064 GB, free: 3.504 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.739e-05/0.103, allocations: 4 kB / 0.5064 GB, free: 3.5 MB / 366.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.0002078/0.1032, allocations: 175.6 kB / 0.5066 GB, free: 3.312 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.181e-05/0.1032, allocations: 11.95 kB / 0.5066 GB, free: 3.301 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.297e-05/0.1032, allocations: 13 kB / 0.5066 GB, free: 3.289 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.1033, allocations: 4 kB / 0.5066 GB, free: 3.285 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.122e-06/0.1033, allocations: 4 kB / 0.5066 GB, free: 3.281 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.1033, allocations: 3.984 kB / 0.5066 GB, free: 3.277 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005782/0.1038, allocations: 499.3 kB / 0.5071 GB, free: 2.727 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.1038, allocations: 0 / 0.5071 GB, free: 2.727 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.169e-05/0.1039, allocations: 4.125 kB / 0.5071 GB, free: 2.723 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.354e-06/0.1039, allocations: 0 / 0.5071 GB, free: 2.723 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.72e-05/0.1039, allocations: 11.98 kB / 0.5071 GB, free: 2.711 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.1039, allocations: 4 kB / 0.5071 GB, free: 2.707 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.1039, allocations: 0 / 0.5071 GB, free: 2.707 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003215/0.1042, allocations: 308.3 kB / 0.5074 GB, free: 2.383 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.552e-05/0.1043, allocations: 89 kB / 0.5075 GB, free: 2.277 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.799e-05/0.1043, allocations: 7.984 kB / 0.5075 GB, free: 2.27 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001071/0.1044, allocations: 8 kB / 0.5075 GB, free: 2.262 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.517e-05/0.1045, allocations: 11.98 kB / 0.5075 GB, free: 2.25 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.057e-05/0.1045, allocations: 8.031 kB / 0.5075 GB, free: 2.242 MB / 366.1 MB Notification: Performance of sorting global known variables: time 9.764e-05/0.1046, allocations: 124.2 kB / 0.5077 GB, free: 2.121 MB / 366.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1046, allocations: 0 / 0.5077 GB, free: 2.121 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003029/0.1049, allocations: 23.98 kB / 0.5077 GB, free: 2.098 MB / 366.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.0006751/0.1056, allocations: 0.8461 MB / 0.5085 GB, free: 1.219 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002912/0.1059, allocations: 143.2 kB / 0.5086 GB, free: 1.066 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.1059, allocations: 0 / 0.5086 GB, free: 1.066 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000138/0.106, allocations: 87.31 kB / 0.5087 GB, free: 0.9688 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003333/0.1063, allocations: 15.94 kB / 0.5087 GB, free: 0.9531 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002293/0.1086, allocations: 1.866 MB / 0.5106 GB, free: 14.96 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003714/0.109, allocations: 0.7041 MB / 0.5113 GB, free: 14.23 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.508e-05/0.1091, allocations: 32.34 kB / 0.5113 GB, free: 14.2 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.262e-05/0.1091, allocations: 31.42 kB / 0.5113 GB, free: 14.16 MB / 382.1 MB Notification: Performance of SimCode: time 6.91e-07/0.1091, allocations: 0 / 0.5113 GB, free: 14.16 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01794/0.1271, allocations: 2.524 MB / 0.5138 GB, free: 11.71 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.217/8.344, allocations: 11.11 kB / 0.5138 GB, free: 11.7 MB / 382.1 MB " [Timeout remaining time 652] (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: 11.108718717005104]