Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.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) 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(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001314/0.001314, allocations: 182.6 kB / 18.04 MB, free: 3.785 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.512/1.512, allocations: 205.4 MB / 224.2 MB, free: 9.047 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.0007339/0.0007337, allocations: 85.48 kB / 272.5 MB, free: 8.293 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003134/0.0003136, allocations: 8 kB / 329.4 MB, free: 15.31 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2262/0.2266, allocations: 47.57 MB / 377 MB, free: 45.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08654/0.3132, allocations: 75.84 MB / 452.8 MB, free: 4.746 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002232/0.3134, allocations: 67.97 kB / 452.9 MB, free: 4.68 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00767/0.3211, allocations: 3.009 MB / 455.9 MB, free: 1.648 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.3212, allocations: 0 / 455.9 MB, free: 1.648 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.494e-05/0.3212, allocations: 4 kB / 455.9 MB, free: 1.645 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0005915/0.3218, allocations: 456.7 kB / 456.4 MB, free: 1.145 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.853e-05/0.3218, allocations: 8.031 kB / 456.4 MB, free: 1.137 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.951e-05/0.3219, allocations: 24.75 kB / 456.4 MB, free: 1.113 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002428/0.3222, allocations: 224.1 kB / 456.6 MB, free: 0.8555 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.149e-05/0.3222, allocations: 24.92 kB / 456.6 MB, free: 0.832 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.656e-05/0.3222, allocations: 28.38 kB / 456.7 MB, free: 0.8047 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000414/0.3227, allocations: 272.9 kB / 456.9 MB, free: 0.5234 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.342e-05/0.3227, allocations: 4.188 kB / 456.9 MB, free: 0.5195 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.432e-05/0.3227, allocations: 15.94 kB / 457 MB, free: 0.5039 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.746e-06/0.3227, allocations: 8 kB / 457 MB, free: 0.4961 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000282/0.323, allocations: 161.6 kB / 457.1 MB, free: 348 kB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001092/0.3241, allocations: 0.9635 MB / 458.1 MB, free: 15.3 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002909/0.3244, allocations: 162.6 kB / 458.2 MB, free: 15.14 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001108/0.3246, allocations: 72.83 kB / 458.3 MB, free: 15.07 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.808e-05/0.3246, allocations: 4 kB / 458.3 MB, free: 15.06 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001733/0.3248, allocations: 111.3 kB / 458.4 MB, free: 14.94 MB / 346.7 MB Notification: Performance of pre-optimization done (n=23): time 1.924e-06/0.3248, allocations: 0 / 458.4 MB, free: 14.94 MB / 346.7 MB Notification: Performance of matching and sorting (n=23): time 0.0004059/0.3252, allocations: 214 kB / 458.6 MB, free: 14.73 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.822e-05/0.3252, allocations: 59.39 kB / 458.7 MB, free: 14.66 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001268/0.3254, allocations: 149.9 kB / 458.8 MB, free: 14.5 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.194e-05/0.3254, allocations: 37.7 kB / 458.9 MB, free: 14.45 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.466e-05/0.3255, allocations: 152.4 kB / 459 MB, free: 14.3 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.874e-05/0.3256, allocations: 55.25 kB / 459.1 MB, free: 14.25 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.425e-05/0.3256, allocations: 12 kB / 459.1 MB, free: 14.23 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001299/0.3257, allocations: 326.8 kB / 459.4 MB, free: 13.91 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001206/0.3259, allocations: 60.62 kB / 459.5 MB, free: 13.84 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001649/0.326, allocations: 145.7 kB / 459.6 MB, free: 13.67 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002634/0.3263, allocations: 185.4 kB / 459.8 MB, free: 13.46 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.959e-06/0.3263, allocations: 4 kB / 459.8 MB, free: 13.46 MB / 346.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003913/0.3267, allocations: 245.3 kB / 460 MB, free: 13.21 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.314e-05/0.3267, allocations: 8 kB / 460 MB, free: 13.2 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.664e-06/0.3268, allocations: 0 / 460 MB, free: 13.2 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.599e-05/0.3268, allocations: 4 kB / 460.1 MB, free: 13.2 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001414/0.3269, allocations: 35.92 kB / 460.1 MB, free: 13.16 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.299e-05/0.327, allocations: 7.938 kB / 460.1 MB, free: 13.16 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001119/0.3271, allocations: 24.17 kB / 460.1 MB, free: 13.13 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.363e-05/0.3271, allocations: 16 kB / 460.1 MB, free: 13.12 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 30 ($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,$PRE.timer.entryTime,timer.entryTime,greaterEqual.y,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * 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 0.0001583/0.3273, allocations: 164.2 kB / 460.3 MB, free: 12.95 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.624e-05/0.3273, allocations: 15.81 kB / 460.3 MB, free: 12.93 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003484/0.3277, allocations: 185.2 kB / 460.5 MB, free: 12.74 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.3277, allocations: 4 kB / 460.5 MB, free: 12.74 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.3277, allocations: 0 / 460.5 MB, free: 12.74 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.878e-06/0.3277, allocations: 3.984 kB / 460.5 MB, free: 12.73 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007634/0.3285, allocations: 0.5872 MB / 461.1 MB, free: 12.09 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.3285, allocations: 3.938 kB / 461.1 MB, free: 12.08 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.664e-05/0.3286, allocations: 19.98 kB / 461.1 MB, free: 12.06 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.62e-06/0.3286, allocations: 3.938 kB / 461.1 MB, free: 12.06 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.588e-05/0.3286, allocations: 4 kB / 461.1 MB, free: 12.05 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.3286, allocations: 3.938 kB / 461.1 MB, free: 12.05 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.3286, allocations: 0 / 461.1 MB, free: 12.05 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000288/0.3289, allocations: 279.2 kB / 461.4 MB, free: 11.76 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.156e-05/0.329, allocations: 96.8 kB / 461.5 MB, free: 11.65 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.48e-05/0.329, allocations: 7.984 kB / 461.5 MB, free: 11.64 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.304e-05/0.3291, allocations: 8 kB / 461.5 MB, free: 11.63 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.021e-05/0.3292, allocations: 19.97 kB / 461.5 MB, free: 11.61 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.83e-05/0.3292, allocations: 11.98 kB / 461.5 MB, free: 11.6 MB / 346.7 MB Notification: Performance of sorting global known variables: time 6.452e-05/0.3293, allocations: 103.3 kB / 461.6 MB, free: 11.5 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3293, allocations: 0 / 461.6 MB, free: 11.5 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003052/0.3296, allocations: 40 kB / 461.7 MB, free: 11.46 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 (step.active,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,transition2.enableFire,timer.entryTime,greaterEqual.y,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * 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.0001584/0.3298, allocations: 111 kB / 461.8 MB, free: 11.34 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003275/0.3301, allocations: 175.7 kB / 462 MB, free: 11.17 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.3301, allocations: 0.5625 kB / 462 MB, free: 11.17 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001277/0.3302, allocations: 79.91 kB / 462 MB, free: 11.09 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002903/0.3305, allocations: 27.98 kB / 462.1 MB, free: 11.07 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006911/0.3312, allocations: 391.7 kB / 462.4 MB, free: 10.66 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003292/0.3316, allocations: 0.7428 MB / 463.2 MB, free: 9.895 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 9.062e-05/0.3317, allocations: 17.95 kB / 463.2 MB, free: 9.879 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.744e-05/0.3318, allocations: 27.42 kB / 463.2 MB, free: 9.852 MB / 346.7 MB Notification: Performance of SimCode: time 6.61e-07/0.3318, allocations: 0 / 463.2 MB, free: 9.852 MB / 346.7 MB Notification: Performance of Templates: time 0.004927/0.3367, allocations: 1.678 MB / 464.9 MB, free: 8.184 MB / 346.7 MB make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches