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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PNlib.Examples.DisTest.SingleTD,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="T1.active|T1.fire|time",fileNamePrefix="PNlib_PNlib.Examples.DisTest.SingleTD") translateModel(PNlib.Examples.DisTest.SingleTD,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="T1.active|T1.fire|time",fileNamePrefix="PNlib_PNlib.Examples.DisTest.SingleTD") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002427/0.002427, allocations: 180 kB / 7.453 MB, free: 2.512 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.992/0.992, allocations: 205.2 MB / 213.1 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000834/0.000834, allocations: 96.06 kB / 261.1 MB, free: 13.54 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 2.2.0-master/package.mo): time 0.06465/0.06465, allocations: 16.72 MB / 325.7 MB, free: 12.76 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 5.39e-06/5.41e-06, allocations: 0 / 383.5 MB, free: 71.25 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0644/0.06442, allocations: 51.68 MB / 435.1 MB, free: 19.57 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1849/0.2494, allocations: 76.21 MB / 0.4994 GB, free: 9.902 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001646/0.2496, allocations: 68.91 kB / 0.4994 GB, free: 9.898 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.00391/0.2535, allocations: 1.583 MB / 0.501 GB, free: 9.77 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.989e-06/0.2535, allocations: 5.906 kB / 0.501 GB, free: 9.766 MB / 330.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.0003053/0.2538, allocations: 400.7 kB / 0.5014 GB, free: 9.375 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.069e-05/0.2539, allocations: 9.625 kB / 0.5014 GB, free: 9.375 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.56e-05/0.2539, allocations: 14.38 kB / 0.5014 GB, free: 9.367 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003637/0.2543, allocations: 200.9 kB / 0.5016 GB, free: 9.16 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.99e-05/0.2544, allocations: 3.656 kB / 0.5016 GB, free: 9.16 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.155e-05/0.2544, allocations: 9.094 kB / 0.5016 GB, free: 9.156 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001669/0.2546, allocations: 46.77 kB / 0.5016 GB, free: 9.152 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001204/0.2548, allocations: 113.2 kB / 0.5017 GB, free: 9.066 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.452e-06/0.2548, allocations: 0 / 0.5017 GB, free: 9.066 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.076e-05/0.2548, allocations: 1.312 kB / 0.5017 GB, free: 9.066 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.149e-06/0.2548, allocations: 3.031 kB / 0.5017 GB, free: 9.066 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000407/0.2552, allocations: 0.7138 MB / 0.5024 GB, free: 8.41 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.707e-05/0.2553, allocations: 79.72 kB / 0.5025 GB, free: 8.352 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.253e-05/0.2553, allocations: 25.94 kB / 0.5025 GB, free: 8.332 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.518e-06/0.2554, allocations: 1.5 kB / 0.5025 GB, free: 8.332 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.858e-05/0.2554, allocations: 78.33 kB / 0.5026 GB, free: 8.262 MB / 330.7 MB Notification: Performance of pre-optimization done (n=8): time 1.122e-06/0.2554, allocations: 0 / 0.5026 GB, free: 8.262 MB / 330.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001338/0.2556, allocations: 76.66 kB / 0.5027 GB, free: 8.223 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.433e-05/0.2556, allocations: 105.9 kB / 0.5028 GB, free: 8.098 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.186e-05/0.2557, allocations: 148 kB / 0.5029 GB, free: 7.988 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.121e-05/0.2557, allocations: 30.86 kB / 0.503 GB, free: 7.957 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.175e-05/0.2558, allocations: 105.9 kB / 0.5031 GB, free: 7.863 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.582e-05/0.2558, allocations: 22.14 kB / 0.5031 GB, free: 7.852 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.428e-06/0.2558, allocations: 1.375 kB / 0.5031 GB, free: 7.852 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 3.831e-05/0.2558, allocations: 325.5 kB / 0.5034 GB, free: 7.535 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.46e-05/0.2559, allocations: 18.88 kB / 0.5034 GB, free: 7.535 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.907e-05/0.2559, allocations: 74.41 kB / 0.5035 GB, free: 7.469 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.68e-05/0.256, allocations: 31.53 kB / 0.5035 GB, free: 7.465 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.256, allocations: 4.969 kB / 0.5035 GB, free: 7.461 MB / 330.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0001557/0.2561, allocations: 120.6 kB / 0.5036 GB, free: 7.414 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.917e-06/0.2562, allocations: 7.344 kB / 0.5036 GB, free: 7.414 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.13e-06/0.2562, allocations: 7.25 kB / 0.5037 GB, free: 7.41 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.189e-05/0.2562, allocations: 7.688 kB / 0.5037 GB, free: 7.406 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.988e-05/0.2563, allocations: 18.83 kB / 0.5037 GB, free: 7.402 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.35e-06/0.2563, allocations: 6.312 kB / 0.5037 GB, free: 7.398 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.823e-05/0.2563, allocations: 7.375 kB / 0.5037 GB, free: 7.398 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.035e-05/0.2564, allocations: 9.312 kB / 0.5037 GB, free: 7.398 MB / 330.7 MB Warning: Assuming fixed start value for the following 3 variables: T1.firingTime:DISCRETE(fixed = false protected = true ) "next putative firing time" type: Real T1.ani:DISCRETE(fixed = false protected = true ) "for transition animation" type: Boolean T1.fireTime:DISCRETE(fixed = false 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: 14 ($whenCondition1,$PRE.T1.firingTime,T1.firingTime,$PRE.T1.delayPassed,T1.delayPassed,T1.activation.active,T1.active,$PRE.T1.fireTime,T1.fireTime,$PRE.T1.ani,T1.ani,T1.firingCon,T1.enabledByInPlaces,T1.enabledByOutPlaces) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 17 * 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 8.779e-05/0.2565, allocations: 146.8 kB / 0.5038 GB, free: 7.254 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.848e-05/0.2565, allocations: 14.09 kB / 0.5039 GB, free: 7.246 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.696e-05/0.2565, allocations: 12.83 kB / 0.5039 GB, free: 7.242 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.2565, allocations: 1 kB / 0.5039 GB, free: 7.242 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.2565, allocations: 2.344 kB / 0.5039 GB, free: 7.242 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.307e-06/0.2565, allocations: 4.969 kB / 0.5039 GB, free: 7.238 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002148/0.2568, allocations: 319.8 kB / 0.5042 GB, free: 6.969 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.2568, allocations: 5.281 kB / 0.5042 GB, free: 6.965 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.237e-05/0.2568, allocations: 8.25 kB / 0.5042 GB, free: 6.961 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.903e-06/0.2568, allocations: 0 / 0.5042 GB, free: 6.961 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.867e-06/0.2568, allocations: 2.656 kB / 0.5042 GB, free: 6.961 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.2568, allocations: 5.172 kB / 0.5042 GB, free: 6.957 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.2568, allocations: 5.031 kB / 0.5042 GB, free: 6.953 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001099/0.257, allocations: 193.8 kB / 0.5044 GB, free: 6.789 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.049e-05/0.257, allocations: 86 kB / 0.5045 GB, free: 6.691 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.992e-05/0.257, allocations: 2.125 kB / 0.5045 GB, free: 6.691 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.413e-05/0.2571, allocations: 4.797 kB / 0.5045 GB, free: 6.691 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.177e-05/0.2571, allocations: 12.89 kB / 0.5045 GB, free: 6.691 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.844e-06/0.2571, allocations: 8.891 kB / 0.5045 GB, free: 6.688 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.704e-05/0.2572, allocations: 109.6 kB / 0.5046 GB, free: 6.613 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002286/0.2574, allocations: 13.94 kB / 0.5046 GB, free: 6.613 MB / 330.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: 7 (T1.fireTime,T1.ani,T1.active,$whenCondition1,T1.firingTime,T1.delayPassed,T1.activation.active) * Number of discrete states: 2 (T1.activation.active,T1.delayPassed) * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 4 * 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 6.754e-05/0.2575, allocations: 107.9 kB / 0.5047 GB, free: 6.516 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001303/0.2576, allocations: 91.61 kB / 0.5048 GB, free: 6.48 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.423e-06/0.2577, allocations: 1.625 kB / 0.5048 GB, free: 6.48 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 5.223e-05/0.2577, allocations: 56 kB / 0.5049 GB, free: 6.445 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001481/0.2579, allocations: 10.42 kB / 0.5049 GB, free: 6.445 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002555/0.2581, allocations: 136.6 kB / 0.505 GB, free: 6.355 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001325/0.2583, allocations: 0.7223 MB / 0.5057 GB, free: 5.648 MB / 330.7 MB Notification: Performance of SimCode: time 2.51e-07/0.2583, allocations: 5.188 kB / 0.5057 GB, free: 5.645 MB / 330.7 MB Notification: Performance of Templates: time 0.002472/0.2608, allocations: 0.8497 MB / 0.5065 GB, free: 5.57 MB / 330.7 MB make -j1 -f PNlib_PNlib.Examples.DisTest.SingleTD.makefile (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 & ./PNlib_PNlib.Examples.DisTest.SingleTD -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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