Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.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,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009478/0.0009479, allocations: 178.4 kB / 16.41 MB, free: 5.707 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.351/1.351, allocations: 205.4 MB / 222.5 MB, free: 9.109 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.0007532/0.0007532, allocations: 85.06 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002891/0.0002891, allocations: 11.98 kB / 327 MB, free: 200 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2144/0.2147, allocations: 47.57 MB / 374.5 MB, free: 45.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.001302/0.2161, allocations: 1.189 MB / 375.7 MB, free: 44.46 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004805/0.2166, allocations: 258.1 kB / 376 MB, free: 44.26 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.211e-05/0.2167, allocations: 7.5 kB / 376 MB, free: 44.25 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 8.388e-05/0.2168, allocations: 24.36 kB / 376 MB, free: 44.23 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 3.933e-05/0.2168, allocations: 13.17 kB / 376 MB, free: 44.22 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002798/0.2171, allocations: 84.22 kB / 376.1 MB, free: 44.16 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002299/0.2173, allocations: 224.9 kB / 376.3 MB, free: 44.02 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002258/0.2176, allocations: 142.6 kB / 376.5 MB, free: 43.94 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.116e-05/0.2176, allocations: 67.53 kB / 376.5 MB, free: 43.9 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.007e-05/0.2177, allocations: 72.2 kB / 376.6 MB, free: 43.84 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.159e-05/0.2178, allocations: 10.34 kB / 376.6 MB, free: 43.84 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.31e-05/0.2178, allocations: 21.39 kB / 376.6 MB, free: 43.84 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.287e-05/0.2179, allocations: 36.81 kB / 376.7 MB, free: 43.81 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.538e-05/0.218, allocations: 57.58 kB / 376.7 MB, free: 43.76 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001746/0.2181, allocations: 151.9 kB / 376.9 MB, free: 43.64 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.2182, allocations: 4 kB / 376.9 MB, free: 43.64 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.2182, allocations: 4.969 kB / 376.9 MB, free: 43.64 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.56e-06/0.2182, allocations: 0 / 376.9 MB, free: 43.64 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0004942/0.2187, allocations: 439.4 kB / 377.3 MB, free: 43.21 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.382e-05/0.2187, allocations: 9.031 kB / 377.3 MB, free: 43.21 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.35e-05/0.2188, allocations: 23.56 kB / 377.3 MB, free: 43.2 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001758/0.219, allocations: 221 kB / 377.6 MB, free: 42.96 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.635e-05/0.219, allocations: 27.92 kB / 377.6 MB, free: 42.94 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.708e-05/0.219, allocations: 29.53 kB / 377.6 MB, free: 42.93 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003989/0.2195, allocations: 244.2 kB / 377.9 MB, free: 42.76 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.608e-06/0.2195, allocations: 0 / 377.9 MB, free: 42.76 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.194e-05/0.2195, allocations: 10.69 kB / 377.9 MB, free: 42.75 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.975e-06/0.2195, allocations: 4.562 kB / 377.9 MB, free: 42.75 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002613/0.2198, allocations: 154.1 kB / 378 MB, free: 42.68 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008132/0.2206, allocations: 0.7097 MB / 378.7 MB, free: 42.05 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002614/0.2209, allocations: 166.5 kB / 378.9 MB, free: 41.95 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001081/0.221, allocations: 80.73 kB / 379 MB, free: 41.91 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.173e-05/0.221, allocations: 2.938 kB / 379 MB, free: 41.91 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002064/0.2212, allocations: 116.2 kB / 379.1 MB, free: 41.82 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.503e-06/0.2212, allocations: 0 / 379.1 MB, free: 41.82 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003814/0.2216, allocations: 214.6 kB / 379.3 MB, free: 41.71 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.999e-05/0.2217, allocations: 58.75 kB / 379.4 MB, free: 41.64 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.809e-05/0.2218, allocations: 153.2 kB / 379.5 MB, free: 41.5 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.302e-05/0.2218, allocations: 33.86 kB / 379.5 MB, free: 41.46 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.476e-05/0.2219, allocations: 133.3 kB / 379.7 MB, free: 41.34 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.681e-05/0.2219, allocations: 64.92 kB / 379.7 MB, free: 41.29 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.053e-05/0.2219, allocations: 9.094 kB / 379.7 MB, free: 41.28 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.629e-05/0.222, allocations: 322.5 kB / 380.1 MB, free: 40.96 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001057/0.2221, allocations: 64.97 kB / 380.1 MB, free: 40.92 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001241/0.2222, allocations: 131 kB / 380.2 MB, free: 40.81 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000113/0.2223, allocations: 70.41 kB / 380.3 MB, free: 40.78 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.2223, allocations: 1.125 kB / 380.3 MB, free: 40.78 MB / 298.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003243/0.2227, allocations: 237.4 kB / 380.6 MB, free: 40.65 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.672e-05/0.2227, allocations: 4.781 kB / 380.6 MB, free: 40.65 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.151e-06/0.2227, allocations: 2.5 kB / 380.6 MB, free: 40.65 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.561e-05/0.2227, allocations: 3.594 kB / 380.6 MB, free: 40.65 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001367/0.2229, allocations: 35.5 kB / 380.6 MB, free: 40.64 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.548e-06/0.2229, allocations: 7.562 kB / 380.6 MB, free: 40.63 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.774e-05/0.223, allocations: 29.86 kB / 380.6 MB, free: 40.61 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.796e-05/0.223, allocations: 12.75 kB / 380.6 MB, free: 40.61 MB / 298.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,initialStep.active,$PRE.initialStep.localActive,initialStep.localActive,$PRE.initialStep.newActive,initialStep.newActive,$PRE.initialStep.oldActive,initialStep.oldActive,transition1.enableFire,transition1.fire,$PRE.transition1.t_start,transition1.t_start,step.active,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,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 () * Number of clocked 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 0.0001146/0.2231, allocations: 159.5 kB / 380.8 MB, free: 40.46 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.04e-05/0.2232, allocations: 13.31 kB / 380.8 MB, free: 40.45 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003367/0.2235, allocations: 202.8 kB / 381 MB, free: 40.34 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.939e-06/0.2235, allocations: 6.844 kB / 381 MB, free: 40.33 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.2235, allocations: 4 kB / 381 MB, free: 40.33 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.2236, allocations: 1 kB / 381 MB, free: 40.33 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006034/0.2242, allocations: 0.5715 MB / 381.6 MB, free: 39.85 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.2242, allocations: 1.344 kB / 381.6 MB, free: 39.85 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.66e-05/0.2243, allocations: 23.64 kB / 381.6 MB, free: 39.84 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.469e-06/0.2243, allocations: 0.9375 kB / 381.6 MB, free: 39.84 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.356e-05/0.2243, allocations: 6.031 kB / 381.6 MB, free: 39.83 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.755e-06/0.2243, allocations: 4.859 kB / 381.6 MB, free: 39.83 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.2243, allocations: 0.875 kB / 381.6 MB, free: 39.83 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002475/0.2246, allocations: 274.8 kB / 381.9 MB, free: 39.63 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.502e-05/0.2246, allocations: 85.98 kB / 382 MB, free: 39.53 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.234e-05/0.2246, allocations: 5.062 kB / 382 MB, free: 39.53 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.656e-05/0.2247, allocations: 13.55 kB / 382 MB, free: 39.52 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.08e-05/0.2248, allocations: 26.8 kB / 382 MB, free: 39.5 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.589e-05/0.2248, allocations: 8.688 kB / 382 MB, free: 39.5 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.678e-05/0.2248, allocations: 96.2 kB / 382.1 MB, free: 39.42 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2248, allocations: 5.031 kB / 382.1 MB, free: 39.41 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002774/0.2251, allocations: 53.89 kB / 382.2 MB, free: 39.39 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 (transition2.enableFire,step.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.active,step.newActive,step.oldActive,transition2.fire,transition2.t_start,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 (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.000118/0.2253, allocations: 103.9 kB / 382.3 MB, free: 39.3 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002884/0.2255, allocations: 179.3 kB / 382.5 MB, free: 39.23 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.2256, allocations: 4.062 kB / 382.5 MB, free: 39.22 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000118/0.2257, allocations: 85.38 kB / 382.6 MB, free: 39.19 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002567/0.2259, allocations: 24.81 kB / 382.6 MB, free: 39.17 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005218/0.2265, allocations: 408.9 kB / 383 MB, free: 38.85 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001463/0.2266, allocations: 0.7318 MB / 383.7 MB, free: 38.13 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.679e-05/0.2267, allocations: 20.94 kB / 383.7 MB, free: 38.12 MB / 298.7 MB Notification: Performance of SimCode: time 3.1e-07/0.2267, allocations: 0 / 383.7 MB, free: 38.12 MB / 298.7 MB Notification: Performance of Templates: time 0.003822/0.2305, allocations: 2.322 MB / 386.1 MB, free: 36.91 MB / 298.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.makefile (rm -f Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","../files/Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches