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.001319/0.001319, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.001571/0.001571, allocations: 170.3 kB / 22.46 MB, free: 2.105 MB / 18.57 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 0.9045/0.9045, allocations: 177.1 MB / 202.8 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] 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.04751/0.04751, allocations: 12.64 MB / 271.8 MB, free: 0.7383 MB / 250.7 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: Performance of FrontEnd - loaded program: time 1.413e-06/1.413e-06, allocations: 0 / 402.2 MB, free: 10.65 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.361e-05/2.502e-05, allocations: 2.281 kB / 402.2 MB, free: 10.65 MB / 378.7 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.SingleTD): time 0.001521/0.001546, allocations: 1.008 MB / 403.3 MB, free: 9.633 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004663/0.002012, allocations: 263.8 kB / 403.5 MB, free: 9.375 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.606e-05/0.002078, allocations: 0 / 403.5 MB, free: 9.375 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001336/0.002212, allocations: 43.7 kB / 403.6 MB, free: 9.332 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002114/0.002423, allocations: 47.59 kB / 403.6 MB, free: 9.285 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001168/0.00254, allocations: 79.83 kB / 403.7 MB, free: 9.207 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002085/0.002748, allocations: 235.4 kB / 403.9 MB, free: 8.977 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.007e-05/0.002798, allocations: 16.58 kB / 403.9 MB, free: 8.961 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001533/0.002952, allocations: 159.7 kB / 404.1 MB, free: 8.805 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.317e-05/0.003005, allocations: 27.78 kB / 404.1 MB, free: 8.777 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.938e-05/0.003024, allocations: 8 kB / 404.1 MB, free: 8.77 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.114e-05/0.003075, allocations: 16 kB / 404.1 MB, free: 8.754 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 6.903e-05/0.003144, allocations: 27.83 kB / 404.2 MB, free: 8.727 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.676e-05/0.003181, allocations: 23.88 kB / 404.2 MB, free: 8.703 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000137/0.003318, allocations: 83.7 kB / 404.3 MB, free: 8.621 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.115e-06/0.003321, allocations: 0 / 404.3 MB, free: 8.621 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.003322, allocations: 0 / 404.3 MB, free: 8.621 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.878e-06/0.003326, allocations: 0 / 404.3 MB, free: 8.621 MB / 378.7 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.0004264/0.003753, allocations: 359.5 kB / 404.6 MB, free: 8.234 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.712e-05/0.00379, allocations: 12.03 kB / 404.6 MB, free: 8.223 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.361e-05/0.003824, allocations: 34.75 kB / 404.7 MB, free: 8.18 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.063e-05/0.003854, allocations: 20.84 kB / 404.7 MB, free: 8.16 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001379/0.003992, allocations: 149.5 kB / 404.8 MB, free: 7.992 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.838e-05/0.00401, allocations: 8.375 kB / 404.8 MB, free: 7.984 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.303e-05/0.004023, allocations: 11.92 kB / 404.8 MB, free: 7.973 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002126/0.004236, allocations: 168.3 kB / 405 MB, free: 7.777 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.144e-06/0.004243, allocations: 0 / 405 MB, free: 7.777 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.066e-05/0.004254, allocations: 3.984 kB / 405 MB, free: 7.773 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.851e-06/0.00426, allocations: 4 kB / 405 MB, free: 7.77 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001262/0.004386, allocations: 93.59 kB / 405.1 MB, free: 7.672 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005492/0.004935, allocations: 0.7115 MB / 405.8 MB, free: 6.898 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001366/0.005072, allocations: 110.9 kB / 405.9 MB, free: 6.766 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.675e-05/0.005118, allocations: 59.41 kB / 406 MB, free: 6.695 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.013e-06/0.005125, allocations: 0 / 406 MB, free: 6.695 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001533/0.005279, allocations: 134.6 kB / 406.1 MB, free: 6.539 MB / 378.7 MB Notification: Performance of pre-optimization done (n=9): time 1.122e-06/0.00528, allocations: 0 / 406.1 MB, free: 6.539 MB / 378.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002409/0.005521, allocations: 202.7 kB / 406.3 MB, free: 6.316 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.891e-05/0.00557, allocations: 110.8 kB / 406.4 MB, free: 6.184 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001047/0.005674, allocations: 178.3 kB / 406.6 MB, free: 6 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.242e-05/0.005687, allocations: 25.7 kB / 406.6 MB, free: 5.969 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.327e-05/0.00575, allocations: 120.2 kB / 406.7 MB, free: 5.844 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.44e-05/0.005774, allocations: 23.89 kB / 406.8 MB, free: 5.82 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.253e-05/0.005817, allocations: 41.59 kB / 406.8 MB, free: 5.773 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.475e-05/0.005902, allocations: 326.8 kB / 407.1 MB, free: 5.445 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.46e-05/0.005956, allocations: 53.69 kB / 407.2 MB, free: 5.387 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.972e-05/0.006026, allocations: 115.9 kB / 407.3 MB, free: 5.246 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002272/0.006253, allocations: 269.5 kB / 407.6 MB, free: 4.934 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.006256, allocations: 0 / 407.6 MB, free: 4.934 MB / 378.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0001729/0.006429, allocations: 208.8 kB / 407.8 MB, free: 4.711 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.418e-05/0.006453, allocations: 36.92 kB / 407.8 MB, free: 4.672 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.006458, allocations: 12.17 kB / 407.8 MB, free: 4.66 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.243e-05/0.006471, allocations: 4 kB / 407.8 MB, free: 4.656 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.91e-05/0.00653, allocations: 19.94 kB / 407.8 MB, free: 4.637 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.11e-06/0.006535, allocations: 0 / 407.8 MB, free: 4.637 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.194e-05/0.006577, allocations: 23.81 kB / 407.9 MB, free: 4.613 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.388e-05/0.006591, allocations: 8 kB / 407.9 MB, free: 4.605 MB / 378.7 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.0001301/0.006721, allocations: 156.3 kB / 408 MB, free: 4.438 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.089e-05/0.006742, allocations: 27.83 kB / 408 MB, free: 4.41 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.961e-05/0.006771, allocations: 17.14 kB / 408.1 MB, free: 4.395 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.006773, allocations: 0 / 408.1 MB, free: 4.395 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.00678, allocations: 4 kB / 408.1 MB, free: 4.391 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.006783, allocations: 0 / 408.1 MB, free: 4.391 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003527/0.007136, allocations: 488.2 kB / 408.5 MB, free: 3.852 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.007138, allocations: 4 kB / 408.5 MB, free: 3.848 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.576e-05/0.007154, allocations: 3.984 kB / 408.5 MB, free: 3.844 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.007156, allocations: 4 kB / 408.6 MB, free: 3.84 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.754e-06/0.007164, allocations: 4.125 kB / 408.6 MB, free: 3.836 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.007165, allocations: 4 kB / 408.6 MB, free: 3.832 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.007167, allocations: 4 kB / 408.6 MB, free: 3.828 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001734/0.007341, allocations: 345.9 kB / 408.9 MB, free: 3.461 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.143e-05/0.007352, allocations: 11.95 kB / 408.9 MB, free: 3.449 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.315e-05/0.007365, allocations: 0 / 408.9 MB, free: 3.449 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.428e-05/0.007419, allocations: 4 kB / 408.9 MB, free: 3.445 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.675e-05/0.007466, allocations: 19.91 kB / 408.9 MB, free: 3.426 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.903e-06/0.007473, allocations: 4 kB / 408.9 MB, free: 3.422 MB / 378.7 MB Notification: Performance of sorting global known variables: time 6.197e-05/0.007535, allocations: 124.2 kB / 409.1 MB, free: 3.301 MB / 378.7 MB Notification: Performance of sort global known variables: time 7e-08/0.007535, allocations: 0 / 409.1 MB, free: 3.301 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002071/0.007742, allocations: 27.89 kB / 409.1 MB, free: 3.273 MB / 378.7 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.0003654/0.008108, allocations: 0.8673 MB / 410 MB, free: 2.367 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001809/0.008289, allocations: 198.6 kB / 410.1 MB, free: 2.148 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.112e-06/0.00829, allocations: 0 / 410.1 MB, free: 2.148 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 6.677e-05/0.008356, allocations: 113.1 kB / 410.3 MB, free: 2.02 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002215/0.008578, allocations: 15.94 kB / 410.3 MB, free: 2.004 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001418/0.009996, allocations: 2.011 MB / 412.3 MB, free: 15.82 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.734e-05/0.01006, allocations: 93.17 kB / 412.4 MB, free: 15.71 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 5.818e-05/0.01012, allocations: 24.56 kB / 412.4 MB, free: 15.68 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.748e-05/0.01017, allocations: 36.48 kB / 412.4 MB, free: 15.65 MB / 394.7 MB Notification: Performance of SimCode: time 4.81e-07/0.01017, allocations: 0 / 412.4 MB, free: 15.65 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01388/0.02405, allocations: 3.202 MB / 415.6 MB, free: 12.56 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.742/6.766, allocations: 3.438 kB / 415.6 MB, free: 12.56 MB / 394.7 MB " [Timeout remaining time 653] (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/jenkins/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: 8.580639648251235]