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.001746/0.001746, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001904/0.001904, allocations: 194.3 kB / 16.53 MB, free: 6.664 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.456/1.456, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.2121/0.2121, allocations: 16.75 MB / 307.2 MB, free: 14.93 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001442/0.001442, allocations: 59.89 kB / 371.8 MB, free: 3.383 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3195/0.3209, allocations: 53.45 MB / 425.2 MB, free: 39.95 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.SingleTD): time 0.001961/0.3229, allocations: 1.051 MB / 426.3 MB, free: 39.53 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005722/0.3235, allocations: 267.9 kB / 426.5 MB, free: 39.45 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.296e-05/0.3236, allocations: 6.375 kB / 426.5 MB, free: 39.44 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001397/0.3238, allocations: 38.23 kB / 426.6 MB, free: 39.43 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002126/0.324, allocations: 42.06 kB / 426.6 MB, free: 39.41 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001255/0.3241, allocations: 74.08 kB / 426.7 MB, free: 39.41 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002129/0.3243, allocations: 239.8 kB / 426.9 MB, free: 39.38 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.927e-05/0.3244, allocations: 28.89 kB / 426.9 MB, free: 39.38 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001045/0.3245, allocations: 112 kB / 427 MB, free: 39.36 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.671e-05/0.3246, allocations: 54.34 kB / 427.1 MB, free: 39.32 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.732e-05/0.3246, allocations: 2.938 kB / 427.1 MB, free: 39.32 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.396e-05/0.3247, allocations: 19.89 kB / 427.1 MB, free: 39.32 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.829e-05/0.3247, allocations: 16.77 kB / 427.1 MB, free: 39.32 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.904e-05/0.3248, allocations: 46.25 kB / 427.2 MB, free: 39.3 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001122/0.3249, allocations: 72.61 kB / 427.3 MB, free: 39.28 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.419e-06/0.3249, allocations: 3.031 kB / 427.3 MB, free: 39.28 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.3249, allocations: 0 / 427.3 MB, free: 39.28 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.117e-06/0.3249, allocations: 0 / 427.3 MB, free: 39.28 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.0004194/0.3254, allocations: 442.2 kB / 427.7 MB, free: 38.86 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.239e-05/0.3254, allocations: 15.2 kB / 427.7 MB, free: 38.86 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.721e-05/0.3254, allocations: 41.14 kB / 427.7 MB, free: 38.82 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.417e-05/0.3255, allocations: 10.22 kB / 427.8 MB, free: 38.81 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001322/0.3256, allocations: 216.4 kB / 428 MB, free: 38.59 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.23e-05/0.3256, allocations: 6.344 kB / 428 MB, free: 38.59 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.705e-05/0.3257, allocations: 5.5 kB / 428 MB, free: 38.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002235/0.3259, allocations: 138.5 kB / 428.1 MB, free: 38.5 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.746e-06/0.3259, allocations: 0 / 428.1 MB, free: 38.5 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.166e-05/0.3259, allocations: 3.062 kB / 428.1 MB, free: 38.5 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.651e-06/0.3259, allocations: 10.14 kB / 428.1 MB, free: 38.5 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001776/0.3261, allocations: 62.77 kB / 428.2 MB, free: 38.49 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005464/0.3267, allocations: 0.9017 MB / 429.1 MB, free: 37.61 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001511/0.3268, allocations: 79.33 kB / 429.2 MB, free: 37.56 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.033e-05/0.3269, allocations: 34.61 kB / 429.2 MB, free: 37.54 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.187e-06/0.3269, allocations: 6.625 kB / 429.2 MB, free: 37.54 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001459/0.3271, allocations: 90.64 kB / 429.3 MB, free: 37.47 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.282e-06/0.3271, allocations: 0 / 429.3 MB, free: 37.47 MB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.000305/0.3274, allocations: 153.2 kB / 429.4 MB, free: 37.4 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.871e-05/0.3274, allocations: 118.8 kB / 429.6 MB, free: 37.27 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001092/0.3276, allocations: 180.7 kB / 429.7 MB, free: 37.16 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.102e-05/0.3276, allocations: 28.55 kB / 429.8 MB, free: 37.12 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.533e-05/0.3276, allocations: 113.5 kB / 429.9 MB, free: 37.03 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.697e-05/0.3277, allocations: 22.81 kB / 429.9 MB, free: 37.02 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.296e-05/0.3277, allocations: 40.67 kB / 429.9 MB, free: 37 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.553e-05/0.3277, allocations: 326.9 kB / 430.3 MB, free: 36.69 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.584e-05/0.3278, allocations: 24.2 kB / 430.3 MB, free: 36.69 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.518e-05/0.3279, allocations: 89.75 kB / 430.4 MB, free: 36.62 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002545/0.3282, allocations: 262.6 kB / 430.6 MB, free: 36.41 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.3282, allocations: 3.062 kB / 430.6 MB, free: 36.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002316/0.3284, allocations: 193.3 kB / 430.8 MB, free: 36.32 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.153e-05/0.3284, allocations: 30.77 kB / 430.8 MB, free: 36.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.3285, allocations: 2.75 kB / 430.8 MB, free: 36.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.377e-05/0.3285, allocations: 6.5 kB / 430.9 MB, free: 36.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.85e-05/0.3286, allocations: 21.66 kB / 430.9 MB, free: 36.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.452e-06/0.3286, allocations: 3.781 kB / 430.9 MB, free: 36.29 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.204e-05/0.3286, allocations: 13.16 kB / 430.9 MB, free: 36.28 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.509e-05/0.3287, allocations: 10.94 kB / 430.9 MB, free: 36.28 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.0001187/0.3288, allocations: 161.5 kB / 431.1 MB, free: 36.12 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.925e-05/0.3288, allocations: 16.25 kB / 431.1 MB, free: 36.12 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.039e-05/0.3288, allocations: 17.69 kB / 431.1 MB, free: 36.12 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-06/0.3288, allocations: 7.094 kB / 431.1 MB, free: 36.11 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.938e-06/0.3289, allocations: 0 / 431.1 MB, free: 36.11 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/0.3289, allocations: 3.984 kB / 431.1 MB, free: 36.11 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003445/0.3292, allocations: 497.3 kB / 431.6 MB, free: 35.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.3292, allocations: 0 / 431.6 MB, free: 35.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.775e-05/0.3293, allocations: 5.312 kB / 431.6 MB, free: 35.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.3293, allocations: 4 kB / 431.6 MB, free: 35.7 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.558e-06/0.3293, allocations: 6.375 kB / 431.6 MB, free: 35.7 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.412e-06/0.3293, allocations: 0 / 431.6 MB, free: 35.7 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.3293, allocations: 0 / 431.6 MB, free: 35.7 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001883/0.3295, allocations: 306.4 kB / 431.9 MB, free: 35.45 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.341e-05/0.3295, allocations: 94.36 kB / 432 MB, free: 35.34 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.122e-05/0.3295, allocations: 2.812 kB / 432 MB, free: 35.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.626e-05/0.3296, allocations: 10.09 kB / 432 MB, free: 35.34 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.545e-05/0.3297, allocations: 13.14 kB / 432 MB, free: 35.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.593e-06/0.3297, allocations: 3.719 kB / 432 MB, free: 35.34 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.236e-05/0.3298, allocations: 129.3 kB / 432.2 MB, free: 35.26 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3298, allocations: 0 / 432.2 MB, free: 35.26 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000288/0.3301, allocations: 20.06 kB / 432.2 MB, free: 35.26 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.000351/0.3304, allocations: 0.8528 MB / 433 MB, free: 34.48 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002147/0.3307, allocations: 142.7 kB / 433.2 MB, free: 34.41 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.3307, allocations: 0 / 433.2 MB, free: 34.41 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.47e-05/0.3308, allocations: 91.89 kB / 433.3 MB, free: 34.34 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003163/0.3311, allocations: 22.14 kB / 433.3 MB, free: 34.34 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001438/0.3325, allocations: 1.864 MB / 435.1 MB, free: 32.82 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001268/0.3327, allocations: 0.7081 MB / 435.8 MB, free: 32.12 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.177e-05/0.3328, allocations: 23.95 kB / 435.9 MB, free: 32.11 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.458e-05/0.3328, allocations: 32.39 kB / 435.9 MB, free: 32.09 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3328, allocations: 0 / 435.9 MB, free: 32.09 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01692/0.3497, allocations: 2.43 MB / 438.3 MB, free: 31.66 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.398/7.747, allocations: 0 / 438.3 MB, free: 31.66 MB / 350.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