Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.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_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_cpp_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_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001354/0.001354, allocations: 195.9 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.405/1.405, allocations: 226.5 MB / 244.3 MB, free: 8.223 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000874/0.0008739, allocations: 101.8 kB / 296.4 MB, free: 6.992 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002633/0.0002634, allocations: 12 kB / 356.2 MB, free: 11.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.232/0.2323, allocations: 51.29 MB / 407.5 MB, free: 27.86 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.001405/0.2338, allocations: 1.414 MB / 408.9 MB, free: 26.43 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004999/0.2343, allocations: 312 kB / 409.2 MB, free: 26.13 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.512e-05/0.2344, allocations: 4 kB / 409.2 MB, free: 26.12 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.686e-05/0.2345, allocations: 17.59 kB / 409.2 MB, free: 26.11 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.253e-05/0.2345, allocations: 19.84 kB / 409.2 MB, free: 26.09 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002802/0.2348, allocations: 83.91 kB / 409.3 MB, free: 26.01 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002061/0.235, allocations: 235.5 kB / 409.6 MB, free: 25.78 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002168/0.2353, allocations: 149.8 kB / 409.7 MB, free: 25.62 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.328e-05/0.2353, allocations: 75.69 kB / 409.8 MB, free: 25.55 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.058e-05/0.2354, allocations: 76.91 kB / 409.8 MB, free: 25.48 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.368e-05/0.2355, allocations: 8 kB / 409.9 MB, free: 25.47 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.783e-05/0.2355, allocations: 16 kB / 409.9 MB, free: 25.45 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.156e-05/0.2356, allocations: 44.84 kB / 409.9 MB, free: 25.41 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.962e-05/0.2356, allocations: 53.64 kB / 410 MB, free: 25.35 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001407/0.2358, allocations: 159.7 kB / 410.1 MB, free: 25.2 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.2358, allocations: 4.734 kB / 410.1 MB, free: 25.19 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.2358, allocations: 0 / 410.1 MB, free: 25.19 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.285e-06/0.2358, allocations: 0.75 kB / 410.1 MB, free: 25.19 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.0004894/0.2363, allocations: 447.5 kB / 410.6 MB, free: 24.71 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.866e-05/0.2363, allocations: 8.031 kB / 410.6 MB, free: 24.7 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.077e-05/0.2364, allocations: 23.72 kB / 410.6 MB, free: 24.68 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000178/0.2366, allocations: 234.6 kB / 410.8 MB, free: 24.41 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.295e-05/0.2366, allocations: 20.56 kB / 410.8 MB, free: 24.39 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.159e-05/0.2366, allocations: 28 kB / 410.9 MB, free: 24.36 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003635/0.237, allocations: 279.1 kB / 411.1 MB, free: 24.07 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.053e-05/0.237, allocations: 0 / 411.1 MB, free: 24.07 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.191e-05/0.2371, allocations: 12 kB / 411.2 MB, free: 24.06 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.454e-06/0.2371, allocations: 8 kB / 411.2 MB, free: 24.05 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002377/0.2373, allocations: 165.6 kB / 411.3 MB, free: 23.89 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008226/0.2381, allocations: 0.9675 MB / 412.3 MB, free: 22.86 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002164/0.2384, allocations: 170 kB / 412.5 MB, free: 22.67 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.345e-05/0.2385, allocations: 82.06 kB / 412.5 MB, free: 22.59 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.558e-05/0.2385, allocations: 8.125 kB / 412.5 MB, free: 22.58 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001951/0.2387, allocations: 142.7 kB / 412.7 MB, free: 22.42 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.583e-06/0.2387, allocations: 0 / 412.7 MB, free: 22.42 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003501/0.2391, allocations: 229 kB / 412.9 MB, free: 22.19 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.359e-05/0.2391, allocations: 89.08 kB / 413 MB, free: 22.09 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.611e-05/0.2392, allocations: 145.6 kB / 413.1 MB, free: 21.93 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.246e-05/0.2392, allocations: 45.69 kB / 413.2 MB, free: 21.88 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.345e-05/0.2393, allocations: 136.4 kB / 413.3 MB, free: 21.75 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.151e-05/0.2393, allocations: 59.38 kB / 413.4 MB, free: 21.69 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.048e-05/0.2393, allocations: 12 kB / 413.4 MB, free: 21.68 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.791e-05/0.2394, allocations: 330.8 kB / 413.7 MB, free: 21.34 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.322e-05/0.2395, allocations: 59.97 kB / 413.8 MB, free: 21.29 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001185/0.2396, allocations: 136.3 kB / 413.9 MB, free: 21.12 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001035/0.2397, allocations: 71.92 kB / 414 MB, free: 21.05 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.2397, allocations: 4 kB / 414 MB, free: 21.05 MB / 298.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0002908/0.24, allocations: 257.8 kB / 414.2 MB, free: 20.79 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.283e-05/0.24, allocations: 8 kB / 414.2 MB, free: 20.78 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.2401, allocations: 0 / 414.2 MB, free: 20.78 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.516e-05/0.2401, allocations: 7.953 kB / 414.2 MB, free: 20.77 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001353/0.2402, allocations: 39.86 kB / 414.3 MB, free: 20.73 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.223e-06/0.2402, allocations: 4 kB / 414.3 MB, free: 20.73 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.183e-05/0.2403, allocations: 31.67 kB / 414.3 MB, free: 20.7 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.429e-05/0.2404, allocations: 12.28 kB / 414.3 MB, free: 20.69 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: 32 ($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,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,step.active,transition2.condition,transition2.enableFire,$PRE.timer.entryTime,timer.entryTime,stateGraphRoot.activeSteps,$PRE.transition2.t_start,transition2.t_start,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 (41): * Single equations (assignments): 41 * 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 9.94e-05/0.2405, allocations: 158.5 kB / 414.5 MB, free: 20.52 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.854e-05/0.2405, allocations: 11.91 kB / 414.5 MB, free: 20.51 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002689/0.2408, allocations: 202.2 kB / 414.7 MB, free: 20.3 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.416e-06/0.2408, allocations: 4 kB / 414.7 MB, free: 20.3 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.2408, allocations: 3.953 kB / 414.7 MB, free: 20.3 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.51e-06/0.2408, allocations: 3.984 kB / 414.7 MB, free: 20.29 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005173/0.2413, allocations: 0.5914 MB / 415.3 MB, free: 19.64 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.2413, allocations: 0 / 415.3 MB, free: 19.64 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.609e-05/0.2414, allocations: 15.95 kB / 415.3 MB, free: 19.62 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.607e-06/0.2414, allocations: 4 kB / 415.3 MB, free: 19.62 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.402e-05/0.2414, allocations: 7.984 kB / 415.3 MB, free: 19.61 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.395e-06/0.2414, allocations: 4 kB / 415.3 MB, free: 19.61 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.2414, allocations: 0 / 415.3 MB, free: 19.61 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002209/0.2417, allocations: 284.5 kB / 415.6 MB, free: 19.31 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.427e-05/0.2417, allocations: 96.86 kB / 415.7 MB, free: 19.2 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.183e-05/0.2417, allocations: 7.953 kB / 415.7 MB, free: 19.19 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.99e-05/0.2418, allocations: 11.98 kB / 415.7 MB, free: 19.18 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.583e-05/0.2419, allocations: 19.97 kB / 415.7 MB, free: 19.16 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.284e-05/0.2419, allocations: 8 kB / 415.7 MB, free: 19.15 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.521e-05/0.2419, allocations: 99.27 kB / 415.8 MB, free: 19.05 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.242, allocations: 4 kB / 415.8 MB, free: 19.05 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002515/0.2422, allocations: 47.84 kB / 415.9 MB, free: 19 MB / 298.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: 20 (transition2.t_start,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: 3 (initialStep.newActive,step.newActive,transition2.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001212/0.2423, allocations: 114.9 kB / 416 MB, free: 18.88 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002499/0.2426, allocations: 179.9 kB / 416.2 MB, free: 18.7 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.2426, allocations: 4.5 kB / 416.2 MB, free: 18.7 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001019/0.2427, allocations: 83.84 kB / 416.3 MB, free: 18.62 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002601/0.243, allocations: 28.05 kB / 416.3 MB, free: 18.59 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004548/0.2434, allocations: 413.5 kB / 416.7 MB, free: 18.15 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001371/0.2436, allocations: 0.7365 MB / 417.4 MB, free: 17.39 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.141e-05/0.2437, allocations: 31.42 kB / 417.5 MB, free: 17.36 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.2437, allocations: 0 / 417.5 MB, free: 17.36 MB / 298.7 MB Notification: Performance of Templates: time 0.003266/0.2469, allocations: 2.395 MB / 419.9 MB, free: 14.97 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (rm -f Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3 --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","../files/Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches