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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001363/0.001363, allocations: 105.8 kB / 18.84 MB, free: 3.023 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001446/0.001446, allocations: 184.8 kB / 22.1 MB, free: 4.223 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.449/1.449, allocations: 225.6 MB / 250.8 MB, free: 2.91 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.07874/0.07874, allocations: 16.95 MB / 323 MB, free: 12.5 MB / 254.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001958/0.001958, allocations: 67.75 kB / 450.9 MB, free: 44.58 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1209/0.1229, allocations: 56.46 MB / 0.4954 GB, free: 16.9 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.ConTest.SingleTC): time 0.002483/0.1254, allocations: 1.081 MB / 0.4965 GB, free: 16.06 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009485/0.1263, allocations: 398.2 kB / 0.4969 GB, free: 15.75 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001278/0.1264, allocations: 3.156 kB / 0.4969 GB, free: 15.75 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001906/0.1266, allocations: 51.81 kB / 0.4969 GB, free: 15.71 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002765/0.1269, allocations: 50.03 kB / 0.497 GB, free: 15.67 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002105/0.1271, allocations: 122.9 kB / 0.4971 GB, free: 15.57 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003221/0.1274, allocations: 316.3 kB / 0.4974 GB, free: 15.38 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.523e-05/0.1275, allocations: 10.94 kB / 0.4974 GB, free: 15.37 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001367/0.1276, allocations: 150.7 kB / 0.4975 GB, free: 15.28 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.901e-05/0.1277, allocations: 50.64 kB / 0.4976 GB, free: 15.24 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.775e-05/0.1277, allocations: 7.188 kB / 0.4976 GB, free: 15.24 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001344/0.1279, allocations: 66.25 kB / 0.4977 GB, free: 15.2 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.852e-05/0.128, allocations: 27.02 kB / 0.4977 GB, free: 15.18 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 4.423e-05/0.128, allocations: 37.61 kB / 0.4977 GB, free: 15.15 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001934/0.1282, allocations: 114.7 kB / 0.4978 GB, free: 15.08 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.1282, allocations: 5.688 kB / 0.4978 GB, free: 15.07 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1282, allocations: 0 / 0.4978 GB, free: 15.07 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.231e-06/0.1282, allocations: 3.938 kB / 0.4978 GB, free: 15.07 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0004226/0.1286, allocations: 348.9 kB / 0.4982 GB, free: 14.72 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.212e-05/0.1287, allocations: 13.14 kB / 0.4982 GB, free: 14.72 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.478e-05/0.1287, allocations: 41.34 kB / 0.4982 GB, free: 14.67 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.73e-05/0.1287, allocations: 13.84 kB / 0.4982 GB, free: 14.66 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001523/0.1289, allocations: 137.2 kB / 0.4984 GB, free: 14.52 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.321e-05/0.1289, allocations: 10.25 kB / 0.4984 GB, free: 14.51 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.166e-05/0.1289, allocations: 4.312 kB / 0.4984 GB, free: 14.51 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001833/0.1291, allocations: 108.4 kB / 0.4985 GB, free: 14.41 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.155e-05/0.1291, allocations: 5.594 kB / 0.4985 GB, free: 14.41 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.448e-05/0.1291, allocations: 9.594 kB / 0.4985 GB, free: 14.4 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.563e-06/0.1291, allocations: 1.844 kB / 0.4985 GB, free: 14.4 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.999e-05/0.1292, allocations: 48.25 kB / 0.4986 GB, free: 14.38 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006073/0.1299, allocations: 0.64 MB / 0.4992 GB, free: 13.73 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001825/0.13, allocations: 48.77 kB / 0.4992 GB, free: 13.69 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.613e-05/0.1301, allocations: 20.11 kB / 0.4992 GB, free: 13.67 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.669e-05/0.1301, allocations: 0 / 0.4992 GB, free: 13.67 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.118e-05/0.1301, allocations: 32 kB / 0.4993 GB, free: 13.63 MB / 366.1 MB Notification: Performance of pre-optimization done (n=6): time 8.62e-07/0.1301, allocations: 0 / 0.4993 GB, free: 13.63 MB / 366.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002616/0.1304, allocations: 125.5 kB / 0.4994 GB, free: 13.53 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.666e-05/0.1304, allocations: 84.02 kB / 0.4995 GB, free: 13.43 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001369/0.1305, allocations: 164.3 kB / 0.4996 GB, free: 13.3 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.649e-06/0.1306, allocations: 27.3 kB / 0.4997 GB, free: 13.27 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.743e-05/0.1306, allocations: 113.5 kB / 0.4998 GB, free: 13.16 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.406e-05/0.1306, allocations: 22.61 kB / 0.4998 GB, free: 13.14 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.897e-05/0.1307, allocations: 33.02 kB / 0.4998 GB, free: 13.11 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.759e-05/0.1307, allocations: 321.5 kB / 0.5001 GB, free: 12.79 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.523e-05/0.1308, allocations: 22.17 kB / 0.5001 GB, free: 12.78 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.404e-05/0.1308, allocations: 55.3 kB / 0.5002 GB, free: 12.73 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001148/0.131, allocations: 132.5 kB / 0.5003 GB, free: 12.59 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.205e-06/0.131, allocations: 0 / 0.5003 GB, free: 12.59 MB / 366.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001777/0.1311, allocations: 140.3 kB / 0.5005 GB, free: 12.49 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.876e-05/0.1312, allocations: 32.23 kB / 0.5005 GB, free: 12.46 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/0.1312, allocations: 5.25 kB / 0.5005 GB, free: 12.46 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.619e-05/0.1312, allocations: 1.25 kB / 0.5005 GB, free: 12.46 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.6e-05/0.1312, allocations: 15.45 kB / 0.5005 GB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.135e-06/0.1313, allocations: 2 kB / 0.5005 GB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.027e-05/0.1313, allocations: 15.45 kB / 0.5005 GB, free: 12.44 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.632e-05/0.1313, allocations: 8.719 kB / 0.5005 GB, free: 12.44 MB / 366.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 8.977e-05/0.1314, allocations: 155.8 kB / 0.5007 GB, free: 12.28 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.197e-05/0.1314, allocations: 14.22 kB / 0.5007 GB, free: 12.27 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001762/0.1316, allocations: 126.5 kB / 0.5008 GB, free: 12.15 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.923e-06/0.1316, allocations: 0 / 0.5008 GB, free: 12.15 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.1316, allocations: 0 / 0.5008 GB, free: 12.15 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.1316, allocations: 5.844 kB / 0.5008 GB, free: 12.15 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001004/0.1317, allocations: 162.7 kB / 0.501 GB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.1317, allocations: 4 kB / 0.501 GB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.765e-05/0.1317, allocations: 5.719 kB / 0.501 GB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.063e-06/0.1317, allocations: 1.906 kB / 0.501 GB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.012e-05/0.1318, allocations: 3.938 kB / 0.501 GB, free: 11.95 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.1318, allocations: 5.75 kB / 0.501 GB, free: 11.95 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.1318, allocations: 0 / 0.501 GB, free: 11.95 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001308/0.1319, allocations: 124.9 kB / 0.5011 GB, free: 11.83 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.905e-05/0.1319, allocations: 14.94 kB / 0.5011 GB, free: 11.82 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.377e-05/0.1319, allocations: 10.2 kB / 0.5011 GB, free: 11.81 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.953e-05/0.1319, allocations: 5.594 kB / 0.5011 GB, free: 11.81 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.544e-05/0.132, allocations: 5.469 kB / 0.5012 GB, free: 11.8 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.718e-06/0.132, allocations: 1.5 kB / 0.5012 GB, free: 11.8 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.639e-05/0.1321, allocations: 121.1 kB / 0.5013 GB, free: 11.71 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1321, allocations: 0 / 0.5013 GB, free: 11.71 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002249/0.1323, allocations: 25.17 kB / 0.5013 GB, free: 11.71 MB / 366.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.0003542/0.1326, allocations: 0.6921 MB / 0.502 GB, free: 11.03 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001941/0.1328, allocations: 105.9 kB / 0.5021 GB, free: 10.95 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1328, allocations: 0 / 0.5021 GB, free: 10.95 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.491e-05/0.1329, allocations: 66.41 kB / 0.5021 GB, free: 10.88 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002553/0.1331, allocations: 8.125 kB / 0.5021 GB, free: 10.88 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001422/0.1346, allocations: 1.595 MB / 0.5037 GB, free: 9.426 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001341/0.1347, allocations: 0.7079 MB / 0.5044 GB, free: 8.711 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.218e-05/0.1348, allocations: 44.92 kB / 0.5044 GB, free: 8.688 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.349e-05/0.1348, allocations: 39.67 kB / 0.5045 GB, free: 8.656 MB / 366.1 MB Notification: Performance of SimCode: time 3.6e-07/0.1348, allocations: 0 / 0.5045 GB, free: 8.656 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02561/0.1605, allocations: 2.409 MB / 0.5068 GB, free: 6.883 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.722/7.882, allocations: 6.734 kB / 0.5068 GB, free: 6.879 MB / 366.1 MB " [Timeout remaining time 652] (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/jenkins1/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: 10.77394778499729]