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.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.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01046/0.01046, allocations: 100.4 kB / 15.73 MB, free: 6.473 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.00175/0.00175, allocations: 197.2 kB / 16.67 MB, free: 6.379 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.429/1.429, 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.1934/0.1934, allocations: 16.76 MB / 307.3 MB, free: 14.88 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001482/0.001482, allocations: 67.69 kB / 425.9 MB, free: 37.09 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0945/0.096, allocations: 53.48 MB / 479.3 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.SingleTD): time 0.002724/0.09878, allocations: 1.037 MB / 480.4 MB, free: 10.01 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008968/0.09971, allocations: 282.3 kB / 480.7 MB, free: 9.789 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002552/0.09999, allocations: 6.031 kB / 480.7 MB, free: 9.785 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000217/0.1002, allocations: 47.06 kB / 480.7 MB, free: 9.746 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002835/0.1006, allocations: 28.33 kB / 480.7 MB, free: 9.723 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002019/0.1008, allocations: 82.81 kB / 480.8 MB, free: 9.652 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003176/0.1011, allocations: 235.9 kB / 481.1 MB, free: 9.512 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.445e-05/0.1012, allocations: 24.11 kB / 481.1 MB, free: 9.496 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001422/0.1013, allocations: 114.3 kB / 481.2 MB, free: 9.426 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.356e-05/0.1014, allocations: 52.19 kB / 481.2 MB, free: 9.383 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.896e-05/0.1014, allocations: 8.375 kB / 481.2 MB, free: 9.379 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.834e-05/0.1015, allocations: 15.19 kB / 481.3 MB, free: 9.371 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.001e-05/0.1016, allocations: 23.25 kB / 481.3 MB, free: 9.355 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.257e-05/0.1016, allocations: 39.64 kB / 481.3 MB, free: 9.324 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001483/0.1018, allocations: 79.97 kB / 481.4 MB, free: 9.266 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.1018, allocations: 0 / 481.4 MB, free: 9.266 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1018, allocations: 0 / 481.4 MB, free: 9.266 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.466e-06/0.1018, allocations: 1.125 kB / 481.4 MB, free: 9.266 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.000482/0.1023, allocations: 434.5 kB / 481.8 MB, free: 8.824 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.63e-05/0.1024, allocations: 17.64 kB / 481.8 MB, free: 8.816 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.528e-05/0.1024, allocations: 44.95 kB / 481.9 MB, free: 8.766 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.957e-05/0.1025, allocations: 11.09 kB / 481.9 MB, free: 8.762 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002073/0.1027, allocations: 212.6 kB / 482.1 MB, free: 8.527 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.036e-05/0.1027, allocations: 7.969 kB / 482.1 MB, free: 8.523 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.091e-05/0.1027, allocations: 5.719 kB / 482.1 MB, free: 8.523 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003275/0.1031, allocations: 135 kB / 482.3 MB, free: 8.402 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.264e-05/0.1031, allocations: 1.188 kB / 482.3 MB, free: 8.402 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.795e-05/0.1031, allocations: 5.281 kB / 482.3 MB, free: 8.398 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.024e-05/0.1031, allocations: 2.125 kB / 482.3 MB, free: 8.398 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000235/0.1034, allocations: 66.86 kB / 482.3 MB, free: 8.367 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008494/0.1042, allocations: 0.9075 MB / 483.2 MB, free: 7.402 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002068/0.1045, allocations: 80.33 kB / 483.3 MB, free: 7.332 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.586e-05/0.1045, allocations: 37.7 kB / 483.3 MB, free: 7.301 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.215e-05/0.1046, allocations: 1.438 kB / 483.3 MB, free: 7.301 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002507/0.1048, allocations: 92.56 kB / 483.4 MB, free: 7.211 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.443e-06/0.1048, allocations: 0 / 483.4 MB, free: 7.211 MB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.000365/0.1052, allocations: 161 kB / 483.6 MB, free: 7.098 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.83e-05/0.1053, allocations: 109.8 kB / 483.7 MB, free: 6.969 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001304/0.1054, allocations: 164.9 kB / 483.9 MB, free: 6.836 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.379e-05/0.1054, allocations: 31.48 kB / 483.9 MB, free: 6.801 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.894e-05/0.1055, allocations: 117.4 kB / 484 MB, free: 6.684 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.054e-05/0.1055, allocations: 21.14 kB / 484 MB, free: 6.668 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.411e-05/0.1056, allocations: 38.42 kB / 484.1 MB, free: 6.637 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.341e-05/0.1057, allocations: 325 kB / 484.4 MB, free: 6.312 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.125e-05/0.1057, allocations: 32.02 kB / 484.4 MB, free: 6.297 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.012e-05/0.1058, allocations: 80.38 kB / 484.5 MB, free: 6.215 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003253/0.1062, allocations: 271.7 kB / 484.8 MB, free: 5.957 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.1062, allocations: 0 / 484.8 MB, free: 5.957 MB / 350.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002679/0.1065, allocations: 194.2 kB / 485 MB, free: 5.824 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.925e-05/0.1065, allocations: 32.58 kB / 485 MB, free: 5.793 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.085e-06/0.1065, allocations: 1.688 kB / 485 MB, free: 5.793 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.409e-05/0.1065, allocations: 2.75 kB / 485 MB, free: 5.793 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001079/0.1067, allocations: 24.3 kB / 485 MB, free: 5.781 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.022e-05/0.1067, allocations: 6.688 kB / 485 MB, free: 5.777 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.516e-05/0.1067, allocations: 13.41 kB / 485 MB, free: 5.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.457e-05/0.1068, allocations: 5.5 kB / 485 MB, free: 5.77 MB / 350.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.0001729/0.107, allocations: 176 kB / 485.2 MB, free: 5.594 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.436e-05/0.107, allocations: 14.69 kB / 485.2 MB, free: 5.586 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.806e-05/0.107, allocations: 21.11 kB / 485.2 MB, free: 5.57 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.107, allocations: 1.375 kB / 485.2 MB, free: 5.57 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.1071, allocations: 0 / 485.2 MB, free: 5.57 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.04e-06/0.1071, allocations: 1.375 kB / 485.2 MB, free: 5.57 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004081/0.1075, allocations: 0.4893 MB / 485.7 MB, free: 5.086 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.1075, allocations: 0 / 485.7 MB, free: 5.086 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.767e-05/0.1075, allocations: 6.422 kB / 485.7 MB, free: 5.082 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.1075, allocations: 1.312 kB / 485.7 MB, free: 5.082 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.026e-05/0.1076, allocations: 1.312 kB / 485.7 MB, free: 5.082 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.1076, allocations: 1.531 kB / 485.7 MB, free: 5.082 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.1076, allocations: 0 / 485.7 MB, free: 5.082 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002162/0.1078, allocations: 314.2 kB / 486.1 MB, free: 4.801 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.601e-05/0.1078, allocations: 89.03 kB / 486.1 MB, free: 4.699 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.007e-05/0.1078, allocations: 1.188 kB / 486.1 MB, free: 4.699 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.549e-05/0.1079, allocations: 3.844 kB / 486.1 MB, free: 4.699 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.633e-05/0.108, allocations: 13.2 kB / 486.2 MB, free: 4.691 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.824e-06/0.108, allocations: 2.562 kB / 486.2 MB, free: 4.691 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.87e-05/0.1081, allocations: 136.9 kB / 486.3 MB, free: 4.582 MB / 350.1 MB Notification: Performance of sort global known variables: time 6.91e-07/0.1081, allocations: 0 / 486.3 MB, free: 4.582 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002925/0.1084, allocations: 29 kB / 486.3 MB, free: 4.57 MB / 350.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.0003989/0.1088, allocations: 0.8429 MB / 487.2 MB, free: 3.762 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002381/0.1091, allocations: 145.5 kB / 487.3 MB, free: 3.66 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.1091, allocations: 4.375 kB / 487.3 MB, free: 3.656 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.269e-05/0.1092, allocations: 85.61 kB / 487.4 MB, free: 3.582 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003133/0.1095, allocations: 14 kB / 487.4 MB, free: 3.574 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001844/0.1113, allocations: 1.87 MB / 489.3 MB, free: 1.883 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001395/0.1115, allocations: 0.706 MB / 490 MB, free: 1.172 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.703e-05/0.1116, allocations: 19.62 kB / 490 MB, free: 1.164 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.606e-05/0.1116, allocations: 38.3 kB / 490 MB, free: 1.133 MB / 350.1 MB Notification: Performance of SimCode: time 7.71e-07/0.1116, allocations: 0 / 490 MB, free: 1.133 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01804/0.1297, allocations: 2.53 MB / 492.6 MB, free: 15.29 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.361/7.491, allocations: 7.594 kB / 492.6 MB, free: 15.29 MB / 366.1 MB (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 --timeout=50 --tolerance=1e-06 PNlib_PNlib_Examples_DisTest_SingleTD.fmu > PNlib_PNlib.Examples.DisTest.SingleTD.pipe 2>&1) 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) Reference file matches