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 2.2.0-master/package.mo", uses=false) Using package PNlib with version 2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 2.2.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.0009062/0.0009065, allocations: 99.7 kB / 15.05 MB, free: 1.105 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.0009962/0.0009962, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.323/1.323, allocations: 223.2 MB / 239.9 MB, free: 5.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 2.2.0-master/package.mo): time 0.2247/0.2247, allocations: 16.86 MB / 307.8 MB, free: 15.63 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003333/0.0003333, allocations: 12 kB / 373 MB, free: 3.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.334/0.3343, allocations: 54.51 MB / 427.5 MB, free: 37.71 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.SingleTD): time 0.001079/0.3355, allocations: 0.7714 MB / 428.2 MB, free: 37.65 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005515/0.336, allocations: 290.2 kB / 428.5 MB, free: 37.6 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.589e-05/0.3361, allocations: 3.938 kB / 428.5 MB, free: 37.59 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001288/0.3363, allocations: 27.94 kB / 428.6 MB, free: 37.58 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002682/0.3365, allocations: 57.83 kB / 428.6 MB, free: 37.57 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001164/0.3367, allocations: 51.34 kB / 428.7 MB, free: 37.57 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001977/0.3369, allocations: 140.5 kB / 428.8 MB, free: 37.56 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.649e-05/0.3369, allocations: 22.67 kB / 428.8 MB, free: 37.55 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.951e-05/0.337, allocations: 75.25 kB / 428.9 MB, free: 37.54 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.651e-05/0.3371, allocations: 50.36 kB / 428.9 MB, free: 37.52 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.509e-05/0.3371, allocations: 0 / 428.9 MB, free: 37.52 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.182e-05/0.3372, allocations: 14.25 kB / 429 MB, free: 37.51 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.858e-05/0.3373, allocations: 18.25 kB / 429 MB, free: 37.51 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.642e-05/0.3373, allocations: 40.7 kB / 429 MB, free: 37.47 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.523e-05/0.3374, allocations: 52.55 kB / 429.1 MB, free: 37.47 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.275e-06/0.3374, allocations: 0 / 429.1 MB, free: 37.47 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3374, allocations: 1.469 kB / 429.1 MB, free: 37.47 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.235e-06/0.3374, allocations: 0 / 429.1 MB, free: 37.47 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.0004336/0.3379, allocations: 428.7 kB / 429.5 MB, free: 37.06 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.566e-05/0.3379, allocations: 8.875 kB / 429.5 MB, free: 37.06 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.518e-05/0.338, allocations: 42.44 kB / 429.5 MB, free: 37.02 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.623e-05/0.338, allocations: 17 kB / 429.6 MB, free: 37.01 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001319/0.3381, allocations: 196.1 kB / 429.7 MB, free: 36.8 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.954e-05/0.3382, allocations: 7.562 kB / 429.7 MB, free: 36.8 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.554e-05/0.3382, allocations: 9 kB / 429.8 MB, free: 36.8 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002316/0.3384, allocations: 142.6 kB / 429.9 MB, free: 36.71 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.095e-06/0.3385, allocations: 0 / 429.9 MB, free: 36.71 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.252e-05/0.3385, allocations: 6.438 kB / 429.9 MB, free: 36.71 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.44e-06/0.3385, allocations: 2.844 kB / 429.9 MB, free: 36.71 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001799/0.3387, allocations: 70.64 kB / 430 MB, free: 36.71 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005894/0.3393, allocations: 0.9008 MB / 430.9 MB, free: 35.83 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000146/0.3394, allocations: 85.38 kB / 431 MB, free: 35.78 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.775e-06/0.3394, allocations: 0 / 431 MB, free: 35.78 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001598/0.3396, allocations: 98.72 kB / 431.1 MB, free: 35.71 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.203e-06/0.3396, allocations: 0 / 431.1 MB, free: 35.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.000286/0.3399, allocations: 151.9 kB / 431.2 MB, free: 35.64 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.678e-05/0.34, allocations: 113.1 kB / 431.3 MB, free: 35.51 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001072/0.3401, allocations: 182.4 kB / 431.5 MB, free: 35.4 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.114e-05/0.3401, allocations: 25.7 kB / 431.5 MB, free: 35.37 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5e-05/0.3401, allocations: 116.4 kB / 431.6 MB, free: 35.27 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.859e-05/0.3402, allocations: 25.97 kB / 431.7 MB, free: 35.26 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.342e-06/0.3402, allocations: 2.906 kB / 431.7 MB, free: 35.26 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.54e-05/0.3402, allocations: 323.6 kB / 432 MB, free: 34.95 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.69e-05/0.3403, allocations: 27.72 kB / 432 MB, free: 34.95 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.379e-05/0.3404, allocations: 86.56 kB / 432.1 MB, free: 34.88 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.643e-05/0.3405, allocations: 66.38 kB / 432.2 MB, free: 34.84 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.3405, allocations: 4 kB / 432.2 MB, free: 34.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002255/0.3407, allocations: 186.7 kB / 432.3 MB, free: 34.76 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.67e-05/0.3408, allocations: 31.64 kB / 432.4 MB, free: 34.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.3408, allocations: 6.875 kB / 432.4 MB, free: 34.72 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.372e-05/0.3408, allocations: 3 kB / 432.4 MB, free: 34.72 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.02e-05/0.3409, allocations: 22.44 kB / 432.4 MB, free: 34.72 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.085e-06/0.3409, allocations: 11.55 kB / 432.4 MB, free: 34.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.352e-05/0.341, allocations: 14.69 kB / 432.4 MB, free: 34.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.532e-05/0.341, allocations: 9.312 kB / 432.4 MB, free: 34.7 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 ($whenCondition2,T1.active,$PRE.T1.firingTime,T1.firingTime,$PRE.T1.delayPassed,T1.delayPassed,T1.activation.active,$PRE.T1.fireTime,T1.fireTime,$PRE.T1.ani,T1.ani,T1.firingCon,$whenCondition1,T1.enabledByInPlaces,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001299/0.3411, allocations: 164 kB / 432.6 MB, free: 34.55 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.633e-05/0.3411, allocations: 10.88 kB / 432.6 MB, free: 34.55 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.114e-05/0.3412, allocations: 18.23 kB / 432.6 MB, free: 34.55 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.165e-06/0.3412, allocations: 6.969 kB / 432.6 MB, free: 34.54 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.3412, allocations: 0 / 432.6 MB, free: 34.54 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.3412, allocations: 3.953 kB / 432.6 MB, free: 34.54 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003683/0.3416, allocations: 496.2 kB / 433.1 MB, free: 34.13 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.3416, allocations: 3.328 kB / 433.1 MB, free: 34.13 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.606e-05/0.3416, allocations: 5.438 kB / 433.1 MB, free: 34.13 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.3416, allocations: 0 / 433.1 MB, free: 34.13 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.075e-05/0.3417, allocations: 10.16 kB / 433.1 MB, free: 34.13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.234e-06/0.3417, allocations: 3.953 kB / 433.1 MB, free: 34.12 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.3417, allocations: 4.312 kB / 433.1 MB, free: 34.12 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001968/0.3419, allocations: 310.6 kB / 433.4 MB, free: 33.87 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.035e-05/0.3419, allocations: 96.42 kB / 433.5 MB, free: 33.76 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.323e-05/0.3419, allocations: 20.52 kB / 433.6 MB, free: 33.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.875e-05/0.342, allocations: 8.297 kB / 433.6 MB, free: 33.75 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.863e-05/0.3421, allocations: 8.984 kB / 433.6 MB, free: 33.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.837e-06/0.3421, allocations: 7.875 kB / 433.6 MB, free: 33.75 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.463e-05/0.3422, allocations: 121.9 kB / 433.7 MB, free: 33.67 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3422, allocations: 0 / 433.7 MB, free: 33.67 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002834/0.3425, allocations: 21.62 kB / 433.7 MB, free: 33.67 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000424/0.3429, allocations: 0.9275 MB / 434.7 MB, free: 32.81 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000218/0.3431, allocations: 146 kB / 434.8 MB, free: 32.74 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.3431, allocations: 4 kB / 434.8 MB, free: 32.73 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.805e-05/0.3432, allocations: 90.5 kB / 434.9 MB, free: 32.67 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002109/0.3435, allocations: 9.641 kB / 434.9 MB, free: 32.67 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001141/0.3446, allocations: 1.817 MB / 436.7 MB, free: 31.16 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001362/0.3448, allocations: 0.7062 MB / 437.4 MB, free: 30.46 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.71e-05/0.3448, allocations: 21.5 kB / 437.4 MB, free: 30.46 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.574e-05/0.3449, allocations: 37.7 kB / 437.5 MB, free: 30.45 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3449, allocations: 0 / 437.5 MB, free: 30.45 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01061/0.3555, allocations: 2.233 MB / 439.7 MB, free: 30.22 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001182/0.3557, allocations: 148.9 kB / 439.9 MB, free: 29.98 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.586/1.941, allocations: 0 / 439.9 MB, free: 29.98 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/linux/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) TODO: How the !@#!# did the simulation report success but simulation result PNlib_PNlib.Examples.DisTest.SingleTD_res.mat does not exist to compare? outputFormat=mat