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.0008386/0.0008384, allocations: 98.19 kB / 15.36 MB, free: 0.7344 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.0053/0.0053, allocations: 168.8 kB / 16.26 MB, free: 6.652 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.357/1.357, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.1875/0.1875, allocations: 16.73 MB / 308.2 MB, free: 15.6 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003459/0.000346, allocations: 12.23 kB / 373.5 MB, free: 2.988 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2859/0.2863, allocations: 54.47 MB / 428 MB, free: 37.86 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.SingleTD): time 0.0009843/0.2873, allocations: 0.7971 MB / 428.8 MB, free: 37.8 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005372/0.2878, allocations: 289.8 kB / 429.1 MB, free: 37.75 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.409e-05/0.2879, allocations: 0 / 429.1 MB, free: 37.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001327/0.2881, allocations: 34.06 kB / 429.1 MB, free: 37.74 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001685/0.2882, allocations: 30.75 kB / 429.1 MB, free: 37.73 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001111/0.2884, allocations: 68.72 kB / 429.2 MB, free: 37.73 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000173/0.2886, allocations: 215.9 kB / 429.4 MB, free: 37.7 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.935e-05/0.2886, allocations: 19.98 kB / 429.4 MB, free: 37.7 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.465e-05/0.2887, allocations: 101.7 kB / 429.5 MB, free: 37.68 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.398e-05/0.2888, allocations: 47.88 kB / 429.6 MB, free: 37.65 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.572e-05/0.2888, allocations: 2.938 kB / 429.6 MB, free: 37.65 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.851e-05/0.2889, allocations: 12.7 kB / 429.6 MB, free: 37.65 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.051e-05/0.2889, allocations: 20.06 kB / 429.6 MB, free: 37.64 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.887e-05/0.289, allocations: 67.53 kB / 429.7 MB, free: 37.59 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001033/0.2891, allocations: 74.55 kB / 429.8 MB, free: 37.58 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.2891, allocations: 0 / 429.8 MB, free: 37.58 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2891, allocations: 0 / 429.8 MB, free: 37.58 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.476e-06/0.2891, allocations: 1.219 kB / 429.8 MB, free: 37.58 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.0003985/0.2895, allocations: 425 kB / 430.2 MB, free: 37.16 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.284e-05/0.2896, allocations: 8.281 kB / 430.2 MB, free: 37.16 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.133e-05/0.2896, allocations: 41.02 kB / 430.2 MB, free: 37.12 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.274e-05/0.2896, allocations: 19.19 kB / 430.2 MB, free: 37.11 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001278/0.2898, allocations: 212.4 kB / 430.4 MB, free: 36.89 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.822e-05/0.2898, allocations: 3 kB / 430.4 MB, free: 36.89 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.909e-05/0.2898, allocations: 8.438 kB / 430.5 MB, free: 36.89 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002581/0.2901, allocations: 141.3 kB / 430.6 MB, free: 36.81 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.578e-06/0.2901, allocations: 3.938 kB / 430.6 MB, free: 36.81 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.385e-05/0.2901, allocations: 5.219 kB / 430.6 MB, free: 36.81 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.031e-06/0.2901, allocations: 6.562 kB / 430.6 MB, free: 36.81 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002034/0.2903, allocations: 68.03 kB / 430.7 MB, free: 36.8 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005841/0.2909, allocations: 0.9018 MB / 431.6 MB, free: 35.93 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001554/0.2911, allocations: 85.8 kB / 431.7 MB, free: 35.88 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.328e-05/0.2912, allocations: 37.88 kB / 431.7 MB, free: 35.85 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.605e-06/0.2912, allocations: 0 / 431.7 MB, free: 35.85 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001615/0.2914, allocations: 99.72 kB / 431.8 MB, free: 35.79 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.222e-06/0.2914, allocations: 0 / 431.8 MB, free: 35.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003007/0.2917, allocations: 155.2 kB / 431.9 MB, free: 35.71 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.492e-05/0.2917, allocations: 109.3 kB / 432.1 MB, free: 35.59 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001116/0.2918, allocations: 176.3 kB / 432.2 MB, free: 35.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.389e-05/0.2919, allocations: 28.61 kB / 432.3 MB, free: 35.45 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.795e-05/0.2919, allocations: 110.6 kB / 432.4 MB, free: 35.35 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.071e-05/0.292, allocations: 34.41 kB / 432.4 MB, free: 35.34 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.749e-05/0.292, allocations: 26.44 kB / 432.4 MB, free: 35.32 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.75e-05/0.292, allocations: 327.9 kB / 432.7 MB, free: 35 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.104e-05/0.2921, allocations: 24.81 kB / 432.8 MB, free: 35 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.09e-05/0.2922, allocations: 86.56 kB / 432.9 MB, free: 34.93 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002759/0.2925, allocations: 264.8 kB / 433.1 MB, free: 34.73 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.2925, allocations: 2.938 kB / 433.1 MB, free: 34.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002517/0.2928, allocations: 194.8 kB / 433.3 MB, free: 34.65 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.463e-05/0.2928, allocations: 30.77 kB / 433.3 MB, free: 34.62 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/0.2928, allocations: 2.625 kB / 433.3 MB, free: 34.62 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.326e-05/0.2928, allocations: 2.562 kB / 433.3 MB, free: 34.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.146e-05/0.2929, allocations: 17.44 kB / 433.4 MB, free: 34.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.076e-06/0.2929, allocations: 7.656 kB / 433.4 MB, free: 34.61 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.794e-05/0.293, allocations: 25.2 kB / 433.4 MB, free: 34.6 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.538e-05/0.293, allocations: 6.25 kB / 433.4 MB, free: 34.6 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.0001208/0.2931, allocations: 167.3 kB / 433.6 MB, free: 34.45 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.9e-05/0.2932, allocations: 10.62 kB / 433.6 MB, free: 34.44 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.048e-05/0.2932, allocations: 15.36 kB / 433.6 MB, free: 34.44 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.2932, allocations: 4 kB / 433.6 MB, free: 34.44 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.2932, allocations: 7.688 kB / 433.6 MB, free: 34.43 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.2932, allocations: 0 / 433.6 MB, free: 34.43 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003771/0.2936, allocations: 0.4899 MB / 434.1 MB, free: 34.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.2936, allocations: 0 / 434.1 MB, free: 34.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.87e-05/0.2937, allocations: 5.938 kB / 434.1 MB, free: 34.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.2937, allocations: 0 / 434.1 MB, free: 34.02 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.063e-05/0.2937, allocations: 4.484 kB / 434.1 MB, free: 34.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.2937, allocations: 4 kB / 434.1 MB, free: 34.02 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.2937, allocations: 0 / 434.1 MB, free: 34.02 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002056/0.2939, allocations: 318.5 kB / 434.4 MB, free: 33.77 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.556e-05/0.2939, allocations: 91.86 kB / 434.5 MB, free: 33.66 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.106e-05/0.294, allocations: 2.812 kB / 434.5 MB, free: 33.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001148/0.2941, allocations: 14.17 kB / 434.5 MB, free: 33.66 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.03e-05/0.2942, allocations: 8.109 kB / 434.5 MB, free: 33.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.267e-06/0.2942, allocations: 7.578 kB / 434.5 MB, free: 33.66 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.494e-05/0.2942, allocations: 129 kB / 434.7 MB, free: 33.58 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2942, allocations: 3.031 kB / 434.7 MB, free: 33.58 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002996/0.2946, allocations: 18.28 kB / 434.7 MB, free: 33.58 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.000382/0.2949, allocations: 0.8422 MB / 435.5 MB, free: 32.8 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002181/0.2952, allocations: 148.5 kB / 435.7 MB, free: 32.73 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.2952, allocations: 3.938 kB / 435.7 MB, free: 32.73 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.049e-05/0.2953, allocations: 91.53 kB / 435.8 MB, free: 32.66 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003405/0.2956, allocations: 27.28 kB / 435.8 MB, free: 32.66 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001502/0.2971, allocations: 1.877 MB / 437.7 MB, free: 31.19 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001178/0.2973, allocations: 0.7078 MB / 438.4 MB, free: 30.49 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.963e-05/0.2973, allocations: 26.47 kB / 438.4 MB, free: 30.48 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.827e-05/0.2974, allocations: 34.7 kB / 438.4 MB, free: 30.47 MB / 350.1 MB Notification: Performance of SimCode: time 3.51e-07/0.2974, allocations: 0 / 438.4 MB, free: 30.47 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01076/0.3082, allocations: 2.175 MB / 440.6 MB, free: 30.25 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001316/0.3084, allocations: 167.8 kB / 440.8 MB, free: 29.99 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.765/2.073, allocations: 0 / 440.8 MB, free: 29.99 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","../files/PNlib_PNlib.Examples.DisTest.SingleTD.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches