Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001401/0.001401, allocations: 117.7 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0016/0.0016, allocations: 208.8 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.417/1.417, allocations: 227.4 MB / 247.6 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001275/0.001275, allocations: 56.05 kB / 359.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2364/0.2377, allocations: 50.55 MB / 409.9 MB, free: 1.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003072/0.2408, allocations: 1.698 MB / 411.6 MB, free: 15.89 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007207/0.2415, allocations: 295 kB / 411.9 MB, free: 15.6 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001177/0.2417, allocations: 8 kB / 411.9 MB, free: 15.59 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001525/0.2419, allocations: 27.67 kB / 411.9 MB, free: 15.56 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.761e-05/0.2419, allocations: 23.78 kB / 411.9 MB, free: 15.54 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000398/0.2423, allocations: 111.8 kB / 412.1 MB, free: 15.43 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003454/0.2427, allocations: 267.5 kB / 412.3 MB, free: 15.17 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003362/0.243, allocations: 189.5 kB / 412.5 MB, free: 14.98 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001441/0.2432, allocations: 91.7 kB / 412.6 MB, free: 14.89 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001504/0.2434, allocations: 99.53 kB / 412.7 MB, free: 14.79 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.848e-05/0.2434, allocations: 24 kB / 412.7 MB, free: 14.77 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.097e-05/0.2435, allocations: 31.98 kB / 412.7 MB, free: 14.74 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.077e-05/0.2435, allocations: 55.83 kB / 412.8 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001174/0.2437, allocations: 103.5 kB / 412.9 MB, free: 14.58 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002944/0.244, allocations: 255.1 kB / 413.2 MB, free: 14.33 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.244, allocations: 0 / 413.2 MB, free: 14.33 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.244, allocations: 0 / 413.2 MB, free: 14.33 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.705e-06/0.244, allocations: 0 / 413.2 MB, free: 14.33 MB / 334.1 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.0006819/0.2447, allocations: 499.8 kB / 413.6 MB, free: 13.79 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.52e-05/0.2447, allocations: 8.031 kB / 413.6 MB, free: 13.79 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002247/0.245, allocations: 32.73 kB / 413.7 MB, free: 13.75 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003164/0.2453, allocations: 232 kB / 413.9 MB, free: 13.49 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.609e-05/0.2453, allocations: 20.94 kB / 413.9 MB, free: 13.47 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.854e-05/0.2454, allocations: 28.38 kB / 414 MB, free: 13.44 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004483/0.2458, allocations: 266.6 kB / 414.2 MB, free: 13.16 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.073e-05/0.2459, allocations: 192 / 414.2 MB, free: 13.16 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.896e-05/0.2459, allocations: 19.94 kB / 414.2 MB, free: 13.14 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.014e-05/0.2459, allocations: 8 kB / 414.2 MB, free: 13.13 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003048/0.2462, allocations: 169.5 kB / 414.4 MB, free: 12.96 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001178/0.2474, allocations: 0.9555 MB / 415.4 MB, free: 11.95 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002908/0.2477, allocations: 173.3 kB / 415.5 MB, free: 11.76 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001175/0.2478, allocations: 81.72 kB / 415.6 MB, free: 11.67 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.49e-05/0.2479, allocations: 11.94 kB / 415.6 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002152/0.2481, allocations: 133.1 kB / 415.8 MB, free: 11.51 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.783e-06/0.2481, allocations: 0 / 415.8 MB, free: 11.51 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004393/0.2485, allocations: 220.5 kB / 416 MB, free: 11.29 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.708e-05/0.2486, allocations: 89.09 kB / 416.1 MB, free: 11.19 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001176/0.2488, allocations: 145.3 kB / 416.2 MB, free: 11.04 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.705e-05/0.2488, allocations: 45.69 kB / 416.2 MB, free: 10.99 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001068/0.2489, allocations: 148.4 kB / 416.4 MB, free: 10.84 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.213e-05/0.249, allocations: 51.27 kB / 416.4 MB, free: 10.79 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001198/0.2491, allocations: 85.45 kB / 416.5 MB, free: 10.7 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001444/0.2492, allocations: 334.7 kB / 416.8 MB, free: 10.36 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001225/0.2494, allocations: 59.97 kB / 416.9 MB, free: 10.3 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001648/0.2495, allocations: 140.5 kB / 417 MB, free: 10.14 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002597/0.2498, allocations: 188.3 kB / 417.2 MB, free: 9.922 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.829e-06/0.2498, allocations: 4 kB / 417.2 MB, free: 9.918 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003858/0.2502, allocations: 257.3 kB / 417.5 MB, free: 9.66 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.712e-05/0.2502, allocations: 7.125 kB / 417.5 MB, free: 9.656 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.174e-06/0.2503, allocations: 4 kB / 417.5 MB, free: 9.652 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.633e-05/0.2503, allocations: 4 kB / 417.5 MB, free: 9.648 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001416/0.2504, allocations: 27.92 kB / 417.5 MB, free: 9.621 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.22e-05/0.2504, allocations: 7.984 kB / 417.5 MB, free: 9.613 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001115/0.2506, allocations: 31.69 kB / 417.6 MB, free: 9.582 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.768e-05/0.2506, allocations: 12 kB / 417.6 MB, free: 9.57 MB / 334.1 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,stateGraphRoot.activeSteps,timer.entryTime,$PRE.timer.entryTime,transition2.enableFire,transition2.localCondition,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,transition2.t_start,$PRE.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001447/0.2507, allocations: 165.8 kB / 417.7 MB, free: 9.398 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.847e-05/0.2508, allocations: 11.91 kB / 417.7 MB, free: 9.387 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.72e-05/0.2508, allocations: 16.84 kB / 417.8 MB, free: 9.367 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.619e-06/0.2508, allocations: 4 kB / 417.8 MB, free: 9.363 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.404e-06/0.2509, allocations: 0 / 417.8 MB, free: 9.363 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.061e-06/0.2509, allocations: 7.922 kB / 417.8 MB, free: 9.355 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007247/0.2516, allocations: 0.5829 MB / 418.4 MB, free: 8.707 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.2516, allocations: 0 / 418.4 MB, free: 8.707 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.416e-05/0.2517, allocations: 16 kB / 418.4 MB, free: 8.691 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.006e-06/0.2517, allocations: 0 / 418.4 MB, free: 8.691 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.544e-05/0.2517, allocations: 11.98 kB / 418.4 MB, free: 8.68 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.516e-06/0.2517, allocations: 3.938 kB / 418.4 MB, free: 8.676 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.2517, allocations: 0 / 418.4 MB, free: 8.676 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003094/0.2521, allocations: 268.1 kB / 418.7 MB, free: 8.395 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.769e-05/0.2521, allocations: 92.86 kB / 418.7 MB, free: 8.285 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.802e-05/0.2522, allocations: 11.98 kB / 418.8 MB, free: 8.273 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.961e-05/0.2523, allocations: 15.94 kB / 418.8 MB, free: 8.258 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.178e-05/0.2523, allocations: 23.97 kB / 418.8 MB, free: 8.234 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.256e-05/0.2524, allocations: 7.938 kB / 418.8 MB, free: 8.227 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.82e-05/0.2524, allocations: 99.27 kB / 418.9 MB, free: 8.129 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2524, allocations: 3.938 kB / 418.9 MB, free: 8.125 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003084/0.2527, allocations: 47.84 kB / 418.9 MB, free: 8.078 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 18 (transition2.t_start,step.localActive,transition1.enableFire,step.active,initialStep.active,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.localCondition,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 (24): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001171/0.2529, allocations: 111.2 kB / 419.1 MB, free: 7.961 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003429/0.2532, allocations: 177.3 kB / 419.2 MB, free: 7.789 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.2532, allocations: 0 / 419.2 MB, free: 7.789 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001273/0.2534, allocations: 79.78 kB / 419.3 MB, free: 7.711 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003184/0.2537, allocations: 26.16 kB / 419.3 MB, free: 7.688 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006016/0.2543, allocations: 355.4 kB / 419.7 MB, free: 7.305 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003191/0.2546, allocations: 0.7326 MB / 420.4 MB, free: 6.539 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.342e-05/0.2547, allocations: 19.44 kB / 420.4 MB, free: 6.52 MB / 334.1 MB Notification: Performance of SimCode: time 8.51e-07/0.2547, allocations: 0 / 420.4 MB, free: 6.52 MB / 334.1 MB Notification: Performance of Templates: time 0.004282/0.259, allocations: 2.259 MB / 422.7 MB, free: 4.258 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches