Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample") [: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 trunk/package.mo): time 0.001726/0.001727, allocations: 199.5 kB / 8.54 MB, free: 1.801 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.338/1.338, allocations: 225.5 MB / 234.4 MB, free: 3.457 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009313/0.0009314, allocations: 90.61 kB / 286.3 MB, free: 5.234 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 6.071e-06/6.101e-06, allocations: 0 / 343.1 MB, free: 8.797 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09216/0.09218, allocations: 51.48 MB / 394.6 MB, free: 5.27 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2353/0.3275, allocations: 76.06 MB / 470.7 MB, free: 15.09 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003122/0.3279, allocations: 66.36 kB / 470.7 MB, free: 15.06 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.006762/0.3347, allocations: 2.525 MB / 473.2 MB, free: 13.8 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.315e-05/0.3348, allocations: 11.56 kB / 473.3 MB, free: 13.79 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0004377/0.3352, allocations: 439.8 kB / 473.7 MB, free: 13.36 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.621e-05/0.3353, allocations: 8.031 kB / 473.7 MB, free: 13.36 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.328e-05/0.3353, allocations: 19.81 kB / 473.7 MB, free: 13.34 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002176/0.3355, allocations: 229.1 kB / 473.9 MB, free: 13.1 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.283e-05/0.3356, allocations: 10.31 kB / 473.9 MB, free: 13.09 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.42e-05/0.3356, allocations: 12 kB / 474 MB, free: 13.08 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002569/0.3359, allocations: 139.8 kB / 474.1 MB, free: 13 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002885/0.3362, allocations: 212.1 kB / 474.3 MB, free: 12.86 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.187e-05/0.3362, allocations: 4 kB / 474.3 MB, free: 12.86 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.244e-05/0.3362, allocations: 3.094 kB / 474.3 MB, free: 12.86 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.965e-06/0.3362, allocations: 4 kB / 474.3 MB, free: 12.86 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007093/0.337, allocations: 0.6341 MB / 475 MB, free: 12.38 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002031/0.3372, allocations: 146.4 kB / 475.1 MB, free: 12.27 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.608e-05/0.3373, allocations: 72.8 kB / 475.2 MB, free: 12.22 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.965e-05/0.3373, allocations: 192 / 475.2 MB, free: 12.22 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001315/0.3374, allocations: 112.8 kB / 475.3 MB, free: 12.14 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 1.312e-06/0.3374, allocations: 0 / 475.3 MB, free: 12.14 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.000236/0.3377, allocations: 135.6 kB / 475.4 MB, free: 12.04 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.168e-05/0.3377, allocations: 58.22 kB / 475.5 MB, free: 11.97 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.936e-05/0.3378, allocations: 135.1 kB / 475.6 MB, free: 11.85 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.329e-05/0.3378, allocations: 33.08 kB / 475.6 MB, free: 11.82 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.599e-05/0.3379, allocations: 124.9 kB / 475.7 MB, free: 11.7 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.624e-05/0.3379, allocations: 62.83 kB / 475.8 MB, free: 11.65 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.606e-06/0.3379, allocations: 0 / 475.8 MB, free: 11.65 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.664e-05/0.338, allocations: 320.4 kB / 476.1 MB, free: 11.34 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.083e-05/0.3381, allocations: 61.09 kB / 476.2 MB, free: 11.3 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.638e-05/0.3382, allocations: 117.2 kB / 476.3 MB, free: 11.19 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.437e-05/0.3383, allocations: 62.69 kB / 476.4 MB, free: 11.15 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.3383, allocations: 0 / 476.4 MB, free: 11.15 MB / 346.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002487/0.3385, allocations: 210.4 kB / 476.6 MB, free: 11 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.123e-05/0.3385, allocations: 4 kB / 476.6 MB, free: 10.99 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.3386, allocations: 4 kB / 476.6 MB, free: 10.99 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.481e-05/0.3386, allocations: 4 kB / 476.6 MB, free: 10.98 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001215/0.3387, allocations: 30.3 kB / 476.6 MB, free: 10.96 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.44e-06/0.3387, allocations: 11.55 kB / 476.6 MB, free: 10.95 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.811e-05/0.3388, allocations: 15.84 kB / 476.6 MB, free: 10.94 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.242e-05/0.3388, allocations: 8 kB / 476.6 MB, free: 10.93 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,$whenCondition2,$whenCondition1,$PRE.initialStep.localActive,initialStep.localActive,$PRE.initialStep.newActive,initialStep.newActive,$PRE.initialStep.oldActive,initialStep.oldActive,initialStep.active,transition1.enableFire,transition1.fire,$PRE.transition1.t_start,transition1.t_start,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,step.active,transition2.enableFire,transition2.fire,$PRE.transition2.t_start,transition2.t_start,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * 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 6.354e-05/0.3389, allocations: 128.8 kB / 476.8 MB, free: 10.81 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.869e-05/0.3389, allocations: 15.81 kB / 476.8 MB, free: 10.79 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002654/0.3392, allocations: 155.2 kB / 476.9 MB, free: 10.69 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/0.3392, allocations: 8 kB / 476.9 MB, free: 10.68 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.3392, allocations: 0 / 476.9 MB, free: 10.68 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.3392, allocations: 0.8125 kB / 476.9 MB, free: 10.68 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004869/0.3397, allocations: 499.5 kB / 477.4 MB, free: 10.27 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.3397, allocations: 4 kB / 477.4 MB, free: 10.27 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.334e-05/0.3398, allocations: 22.59 kB / 477.5 MB, free: 10.25 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.534e-06/0.3398, allocations: 0 / 477.5 MB, free: 10.25 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.357e-05/0.3398, allocations: 5.188 kB / 477.5 MB, free: 10.25 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.3399, allocations: 0 / 477.5 MB, free: 10.25 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.664e-06/0.3399, allocations: 0 / 477.5 MB, free: 10.25 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002055/0.3401, allocations: 255.6 kB / 477.7 MB, free: 10.03 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.249e-05/0.3401, allocations: 96.8 kB / 477.8 MB, free: 9.918 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.416e-05/0.3401, allocations: 4 kB / 477.8 MB, free: 9.914 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.142e-05/0.3402, allocations: 7.375 kB / 477.8 MB, free: 9.91 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.577e-05/0.3403, allocations: 25.69 kB / 477.8 MB, free: 9.898 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.347e-05/0.3403, allocations: 7.906 kB / 477.8 MB, free: 9.891 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.702e-05/0.3403, allocations: 94.53 kB / 477.9 MB, free: 9.805 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002603/0.3406, allocations: 35.38 kB / 478 MB, free: 9.773 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 19 (transition2.enableFire,step.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.newActive,initialStep.oldActive,initialStep.active,transition1.fire,transition1.t_start,step.newActive,step.oldActive,step.active,transition2.fire,transition2.t_start,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0001244/0.3407, allocations: 107.6 kB / 478.1 MB, free: 9.664 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002163/0.341, allocations: 156.3 kB / 478.2 MB, free: 9.555 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.592e-06/0.341, allocations: 3.938 kB / 478.2 MB, free: 9.551 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 9.458e-05/0.3411, allocations: 93.72 kB / 478.3 MB, free: 9.484 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001841/0.3413, allocations: 7.5 kB / 478.3 MB, free: 9.48 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003987/0.3417, allocations: 227 kB / 478.6 MB, free: 9.285 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001848/0.3419, allocations: 0.7575 MB / 479.3 MB, free: 8.523 MB / 346.7 MB Notification: Performance of SimCode: time 2.6e-07/0.3419, allocations: 0 / 479.3 MB, free: 8.523 MB / 346.7 MB Notification: Performance of Templates: time 0.003967/0.3458, allocations: 1.876 MB / 481.2 MB, free: 7.434 MB / 346.7 MB make -j1 -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.makefile (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_trunk_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches