Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.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_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001429/0.001429, allocations: 187 kB / 17.92 MB, free: 3.855 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.299/1.299, allocations: 205.1 MB / 223.7 MB, free: 8.48 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.001025/0.001025, allocations: 97.55 kB / 271.2 MB, free: 8.438 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009871/0.0009872, allocations: 39.94 kB / 327.2 MB, free: 340 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2056/0.2066, allocations: 46.62 MB / 373.8 MB, free: 45.66 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003066/0.2097, allocations: 1.775 MB / 375.6 MB, free: 44.42 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006684/0.2104, allocations: 284.2 kB / 375.9 MB, free: 44.21 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001399/0.2106, allocations: 7.562 kB / 375.9 MB, free: 44.21 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001382/0.2107, allocations: 19.61 kB / 375.9 MB, free: 44.19 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.773e-05/0.2108, allocations: 9.156 kB / 375.9 MB, free: 44.18 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003891/0.2112, allocations: 102 kB / 376 MB, free: 44.1 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002536/0.2115, allocations: 252.2 kB / 376.2 MB, free: 43.96 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002347/0.2117, allocations: 178.5 kB / 376.4 MB, free: 43.86 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.438e-05/0.2118, allocations: 84.61 kB / 376.5 MB, free: 43.8 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001022/0.2119, allocations: 90.84 kB / 376.6 MB, free: 43.73 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.259e-05/0.212, allocations: 16.5 kB / 376.6 MB, free: 43.73 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.956e-05/0.212, allocations: 18.47 kB / 376.6 MB, free: 43.73 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.867e-05/0.2121, allocations: 53.61 kB / 376.7 MB, free: 43.69 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.271e-05/0.2122, allocations: 97.73 kB / 376.8 MB, free: 43.62 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002068/0.2124, allocations: 218.7 kB / 377 MB, free: 43.45 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.2124, allocations: 0 / 377 MB, free: 43.45 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.2124, allocations: 5.094 kB / 377 MB, free: 43.45 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.779e-06/0.2124, allocations: 0 / 377 MB, free: 43.45 MB / 298.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.0005383/0.213, allocations: 487.4 kB / 377.5 MB, free: 42.97 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.683e-05/0.213, allocations: 9 kB / 377.5 MB, free: 42.97 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.812e-05/0.2131, allocations: 20.78 kB / 377.5 MB, free: 42.96 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001874/0.2133, allocations: 235.8 kB / 377.7 MB, free: 42.71 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.145e-05/0.2133, allocations: 20.75 kB / 377.7 MB, free: 42.71 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.491e-05/0.2133, allocations: 27.06 kB / 377.8 MB, free: 42.7 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003665/0.2137, allocations: 275.5 kB / 378 MB, free: 42.5 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.022e-05/0.2137, allocations: 192 / 378 MB, free: 42.5 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.04e-05/0.2138, allocations: 14.22 kB / 378.1 MB, free: 42.49 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.246e-06/0.2138, allocations: 10.91 kB / 378.1 MB, free: 42.48 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002584/0.214, allocations: 165.5 kB / 378.2 MB, free: 42.41 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008447/0.2149, allocations: 0.9726 MB / 379.2 MB, free: 41.5 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002361/0.2151, allocations: 156.1 kB / 379.3 MB, free: 41.41 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.777e-05/0.2152, allocations: 73.92 kB / 379.4 MB, free: 41.38 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.66e-05/0.2153, allocations: 2.469 kB / 379.4 MB, free: 41.38 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001781/0.2154, allocations: 117.6 kB / 379.5 MB, free: 41.28 MB / 298.7 MB Notification: Performance of pre-optimization done (n=23): time 1.603e-06/0.2155, allocations: 0 / 379.5 MB, free: 41.28 MB / 298.7 MB Notification: Performance of matching and sorting (n=23): time 0.0003727/0.2158, allocations: 217.9 kB / 379.8 MB, free: 41.17 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.887e-05/0.2159, allocations: 54.62 kB / 379.8 MB, free: 41.11 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.859e-05/0.216, allocations: 152.2 kB / 380 MB, free: 40.97 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.107e-05/0.216, allocations: 37.75 kB / 380 MB, free: 40.93 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.673e-05/0.2161, allocations: 139.3 kB / 380.1 MB, free: 40.8 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.431e-05/0.2161, allocations: 64.56 kB / 380.2 MB, free: 40.75 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.678e-05/0.2162, allocations: 79.53 kB / 380.3 MB, free: 40.69 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.643e-05/0.2162, allocations: 331.1 kB / 380.6 MB, free: 40.36 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001017/0.2163, allocations: 66.78 kB / 380.7 MB, free: 40.33 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001573/0.2165, allocations: 137.6 kB / 380.8 MB, free: 40.21 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002012/0.2167, allocations: 192.9 kB / 381 MB, free: 40.06 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.2167, allocations: 1.25 kB / 381 MB, free: 40.06 MB / 298.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003342/0.2171, allocations: 251.1 kB / 381.2 MB, free: 39.93 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.589e-05/0.2171, allocations: 6.469 kB / 381.2 MB, free: 39.93 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.111e-06/0.2171, allocations: 1.688 kB / 381.2 MB, free: 39.93 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.601e-05/0.2171, allocations: 7.938 kB / 381.2 MB, free: 39.92 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000124/0.2172, allocations: 30.83 kB / 381.3 MB, free: 39.91 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.366e-06/0.2173, allocations: 3.969 kB / 381.3 MB, free: 39.91 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.968e-05/0.2174, allocations: 27.83 kB / 381.3 MB, free: 39.89 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.57e-05/0.2174, allocations: 13.62 kB / 381.3 MB, free: 39.89 MB / 298.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,stateGraphRoot.activeSteps,timer.entryTime,$PRE.timer.entryTime,transition2.enableFire,transition2.condition,step.active,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,transition1.t_start,$PRE.transition1.t_start,transition1.fire,transition1.enableFire,initialStep.oldActive,$PRE.initialStep.oldActive,initialStep.newActive,$PRE.initialStep.newActive,initialStep.localActive,$PRE.initialStep.localActive,initialStep.active,$whenCondition1,$whenCondition2,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.762e-05/0.2175, allocations: 166.9 kB / 381.5 MB, free: 39.73 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.867e-05/0.2175, allocations: 12.91 kB / 381.5 MB, free: 39.73 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002835/0.2178, allocations: 198.1 kB / 381.7 MB, free: 39.61 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.2178, allocations: 2.438 kB / 381.7 MB, free: 39.61 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.2178, allocations: 1.188 kB / 381.7 MB, free: 39.61 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.2178, allocations: 7.922 kB / 381.7 MB, free: 39.6 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005394/0.2184, allocations: 0.5862 MB / 382.3 MB, free: 39.1 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-06/0.2184, allocations: 0 / 382.3 MB, free: 39.1 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.635e-05/0.2185, allocations: 19.02 kB / 382.3 MB, free: 39.09 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.378e-06/0.2185, allocations: 9.062 kB / 382.3 MB, free: 39.08 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.148e-05/0.2185, allocations: 5.375 kB / 382.3 MB, free: 39.08 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/0.2185, allocations: 1.312 kB / 382.3 MB, free: 39.08 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.2185, allocations: 1.344 kB / 382.3 MB, free: 39.08 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004301/0.2189, allocations: 0.8772 MB / 383.2 MB, free: 38.27 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.708e-05/0.219, allocations: 89.83 kB / 383.3 MB, free: 38.16 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.209e-05/0.219, allocations: 9.422 kB / 383.3 MB, free: 38.16 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.131e-05/0.2191, allocations: 10.72 kB / 383.3 MB, free: 38.15 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.222e-05/0.2192, allocations: 17.75 kB / 383.3 MB, free: 38.14 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.392e-05/0.2192, allocations: 8.906 kB / 383.3 MB, free: 38.14 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.539e-05/0.2192, allocations: 99.09 kB / 383.4 MB, free: 38.05 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2192, allocations: 0 / 383.4 MB, free: 38.05 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003625/0.2196, allocations: 58.94 kB / 383.5 MB, free: 38.03 MB / 298.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,transition1.enableFire,step.localActive,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.condition,transition2.enableFire,timer.entryTime,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 (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.0001042/0.2197, allocations: 117.2 kB / 383.6 MB, free: 37.93 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002765/0.22, allocations: 187.9 kB / 383.8 MB, free: 37.85 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.22, allocations: 0 / 383.8 MB, free: 37.85 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001149/0.2201, allocations: 81 kB / 383.9 MB, free: 37.82 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002579/0.2204, allocations: 21.83 kB / 383.9 MB, free: 37.8 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006301/0.221, allocations: 0.5806 MB / 384.5 MB, free: 37.31 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001548/0.2212, allocations: 0.7442 MB / 385.2 MB, free: 36.59 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.822e-05/0.2213, allocations: 26.69 kB / 385.2 MB, free: 36.58 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.32e-05/0.2213, allocations: 19.91 kB / 385.2 MB, free: 36.57 MB / 298.7 MB Notification: Performance of SimCode: time 2.11e-07/0.2213, allocations: 1.062 kB / 385.3 MB, free: 36.57 MB / 298.7 MB Notification: Performance of Templates: time 0.004158/0.2255, allocations: 1.814 MB / 387.1 MB, free: 35.66 MB / 298.7 MB make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches