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.00497/0.00497, allocations: 100.5 kB / 15.73 MB, free: 6.031 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.001111/0.001111, allocations: 192.5 kB / 16.67 MB, free: 5.969 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.334/1.334, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.1858/0.1858, allocations: 16.75 MB / 307.3 MB, free: 14.84 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00124/0.00124, allocations: 63.98 kB / 425.9 MB, free: 37.35 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08237/0.08362, allocations: 53.49 MB / 479.4 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.SingleTD): time 0.002525/0.08619, allocations: 1.049 MB / 480.4 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008376/0.08706, allocations: 277.3 kB / 480.7 MB, free: 9.898 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002114/0.08729, allocations: 6.188 kB / 480.7 MB, free: 9.895 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001843/0.08748, allocations: 46.89 kB / 480.7 MB, free: 9.855 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002613/0.08778, allocations: 37.5 kB / 480.8 MB, free: 9.824 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001966/0.08798, allocations: 73.61 kB / 480.8 MB, free: 9.762 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002814/0.08827, allocations: 231.1 kB / 481.1 MB, free: 9.625 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.804e-05/0.08835, allocations: 24.75 kB / 481.1 MB, free: 9.609 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001237/0.08848, allocations: 114.5 kB / 481.2 MB, free: 9.539 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.526e-05/0.08856, allocations: 56.09 kB / 481.2 MB, free: 9.492 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2e-05/0.08859, allocations: 4.812 kB / 481.3 MB, free: 9.492 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.185e-05/0.08865, allocations: 15.75 kB / 481.3 MB, free: 9.484 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.749e-05/0.08874, allocations: 19.64 kB / 481.3 MB, free: 9.473 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.451e-05/0.0888, allocations: 37.7 kB / 481.3 MB, free: 9.441 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001476/0.08895, allocations: 80.09 kB / 481.4 MB, free: 9.383 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.08897, allocations: 0.875 kB / 481.4 MB, free: 9.383 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.08897, allocations: 0 / 481.4 MB, free: 9.383 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.683e-06/0.08899, allocations: 9.375 kB / 481.4 MB, free: 9.375 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.0005473/0.08954, allocations: 445.2 kB / 481.8 MB, free: 8.922 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.171e-05/0.0896, allocations: 14.02 kB / 481.9 MB, free: 8.918 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.72e-05/0.08964, allocations: 36.91 kB / 481.9 MB, free: 8.875 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.827e-05/0.0897, allocations: 15.39 kB / 481.9 MB, free: 8.867 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000195/0.0899, allocations: 200.6 kB / 482.1 MB, free: 8.645 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.719e-05/0.08993, allocations: 8.219 kB / 482.1 MB, free: 8.641 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.825e-05/0.08996, allocations: 9.734 kB / 482.1 MB, free: 8.637 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002928/0.09025, allocations: 133.5 kB / 482.3 MB, free: 8.516 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.064e-05/0.09027, allocations: 0 / 482.3 MB, free: 8.516 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.788e-05/0.0903, allocations: 6.594 kB / 482.3 MB, free: 8.512 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.624e-06/0.09031, allocations: 1.406 kB / 482.3 MB, free: 8.512 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002074/0.09052, allocations: 70.39 kB / 482.3 MB, free: 8.477 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007294/0.09126, allocations: 0.9024 MB / 483.2 MB, free: 7.516 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001707/0.09144, allocations: 85.38 kB / 483.3 MB, free: 7.441 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.768e-05/0.09152, allocations: 33.11 kB / 483.3 MB, free: 7.414 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.795e-06/0.09154, allocations: 1.094 kB / 483.4 MB, free: 7.414 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001715/0.09171, allocations: 92.84 kB / 483.4 MB, free: 7.324 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.282e-06/0.09172, allocations: 1.438 kB / 483.4 MB, free: 7.324 MB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.0002978/0.09203, allocations: 160.4 kB / 483.6 MB, free: 7.211 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.067e-05/0.09208, allocations: 106.4 kB / 483.7 MB, free: 7.086 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001111/0.09219, allocations: 168.1 kB / 483.9 MB, free: 6.949 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.195e-05/0.09221, allocations: 31.02 kB / 483.9 MB, free: 6.914 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.572e-05/0.09226, allocations: 118.5 kB / 484 MB, free: 6.797 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.722e-05/0.09229, allocations: 19.78 kB / 484 MB, free: 6.781 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.374e-05/0.09234, allocations: 39.02 kB / 484.1 MB, free: 6.75 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.273e-05/0.09238, allocations: 330.9 kB / 484.4 MB, free: 6.422 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.657e-05/0.09245, allocations: 27.08 kB / 484.4 MB, free: 6.41 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.754e-05/0.09254, allocations: 81.91 kB / 484.5 MB, free: 6.328 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002541/0.0928, allocations: 267.2 kB / 484.8 MB, free: 6.074 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.09281, allocations: 3.188 kB / 484.8 MB, free: 6.074 MB / 350.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002362/0.09305, allocations: 184.6 kB / 484.9 MB, free: 5.949 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.372e-05/0.09309, allocations: 35.19 kB / 485 MB, free: 5.914 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.902e-06/0.0931, allocations: 6.75 kB / 485 MB, free: 5.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.46e-05/0.09312, allocations: 2.75 kB / 485 MB, free: 5.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.111e-05/0.0932, allocations: 16.31 kB / 485 MB, free: 5.906 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.454e-06/0.09322, allocations: 14.61 kB / 485 MB, free: 5.895 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.206e-05/0.09328, allocations: 13.41 kB / 485 MB, free: 5.887 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.444e-05/0.0933, allocations: 5.5 kB / 485 MB, free: 5.887 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.0001277/0.09344, allocations: 176.1 kB / 485.2 MB, free: 5.711 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.229e-05/0.09346, allocations: 14.69 kB / 485.2 MB, free: 5.703 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.858e-05/0.0935, allocations: 17.12 kB / 485.2 MB, free: 5.691 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/0.09351, allocations: 1.375 kB / 485.2 MB, free: 5.691 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.09351, allocations: 0 / 485.2 MB, free: 5.691 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.09352, allocations: 1.375 kB / 485.2 MB, free: 5.691 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003563/0.09388, allocations: 0.4923 MB / 485.7 MB, free: 5.203 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.0939, allocations: 0 / 485.7 MB, free: 5.203 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.873e-05/0.09393, allocations: 4.125 kB / 485.7 MB, free: 5.203 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.776e-06/0.09394, allocations: 0 / 485.7 MB, free: 5.203 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.085e-05/0.09395, allocations: 6.688 kB / 485.7 MB, free: 5.199 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.09396, allocations: 0 / 485.7 MB, free: 5.199 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.09397, allocations: 1.375 kB / 485.7 MB, free: 5.199 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000203/0.09417, allocations: 317.5 kB / 486.1 MB, free: 4.914 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.524e-05/0.09421, allocations: 84.98 kB / 486.1 MB, free: 4.816 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.168e-05/0.09423, allocations: 1.375 kB / 486.1 MB, free: 4.816 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.75e-05/0.09434, allocations: 7.609 kB / 486.1 MB, free: 4.812 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.895e-05/0.09439, allocations: 13.39 kB / 486.2 MB, free: 4.805 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.124e-06/0.0944, allocations: 2.969 kB / 486.2 MB, free: 4.805 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.799e-05/0.09449, allocations: 132 kB / 486.3 MB, free: 4.699 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09449, allocations: 0 / 486.3 MB, free: 4.699 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002994/0.0948, allocations: 29 kB / 486.3 MB, free: 4.688 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.0003998/0.0952, allocations: 0.8356 MB / 487.2 MB, free: 3.887 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002372/0.09545, allocations: 153.3 kB / 487.3 MB, free: 3.777 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.09546, allocations: 5.062 kB / 487.3 MB, free: 3.773 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.849e-05/0.09556, allocations: 88.77 kB / 487.4 MB, free: 3.695 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003178/0.09588, allocations: 13.73 kB / 487.4 MB, free: 3.688 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001477/0.09737, allocations: 1.868 MB / 489.3 MB, free: 1.996 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001369/0.09752, allocations: 0.706 MB / 490 MB, free: 1.285 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.768e-05/0.09759, allocations: 23.62 kB / 490 MB, free: 1.273 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.212e-05/0.09765, allocations: 34.3 kB / 490 MB, free: 1.246 MB / 350.1 MB Notification: Performance of SimCode: time 2.81e-07/0.09766, allocations: 0 / 490 MB, free: 1.246 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01646/0.1141, allocations: 2.526 MB / 492.6 MB, free: 15.32 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.523/7.638, allocations: 12.28 kB / 492.6 MB, free: 15.31 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