Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.001864/0.001864, allocations: 180.5 kB / 17.41 MB, free: 4.41 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.581/3.581, allocations: 205.4 MB / 223.6 MB, free: 8.945 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.001172/0.001172, allocations: 94.34 kB / 271.9 MB, free: 8.238 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005594/0.0005596, allocations: 8 kB / 328.1 MB, free: 15.94 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5854/0.586, allocations: 47.57 MB / 375.7 MB, free: 45.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1937/0.7798, allocations: 75.83 MB / 451.5 MB, free: 4.812 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003807/0.7803, allocations: 71.95 kB / 451.6 MB, free: 4.742 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01666/0.797, allocations: 3.001 MB / 454.6 MB, free: 1.719 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.116e-06/0.797, allocations: 0 / 454.6 MB, free: 1.719 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.239e-05/0.7971, allocations: 4 kB / 454.6 MB, free: 1.715 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.000972/0.798, allocations: 456.7 kB / 455.1 MB, free: 1.219 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.329e-05/0.7981, allocations: 8.031 kB / 455.1 MB, free: 1.211 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001201/0.7982, allocations: 24.75 kB / 455.1 MB, free: 1.188 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004105/0.7987, allocations: 224.1 kB / 455.3 MB, free: 0.9297 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.262e-05/0.7987, allocations: 24.94 kB / 455.3 MB, free: 0.9062 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.714e-05/0.7988, allocations: 32.36 kB / 455.4 MB, free: 0.875 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006897/0.7995, allocations: 266.5 kB / 455.6 MB, free: 0.5938 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.676e-05/0.7996, allocations: 4.188 kB / 455.6 MB, free: 0.5898 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.961e-05/0.7996, allocations: 11.94 kB / 455.6 MB, free: 0.5781 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.331e-05/0.7996, allocations: 12 kB / 455.7 MB, free: 0.5664 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005167/0.8002, allocations: 165.6 kB / 455.8 MB, free: 416 kB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00181/0.802, allocations: 0.9557 MB / 456.8 MB, free: 15.38 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000535/0.8026, allocations: 168.8 kB / 456.9 MB, free: 15.21 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002354/0.8028, allocations: 76.92 kB / 457 MB, free: 15.13 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.34e-05/0.8029, allocations: 7.906 kB / 457 MB, free: 15.12 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003486/0.8032, allocations: 113.8 kB / 457.1 MB, free: 15 MB / 346.7 MB Notification: Performance of pre-optimization done (n=23): time 5.461e-06/0.8033, allocations: 0 / 457.1 MB, free: 15 MB / 346.7 MB Notification: Performance of matching and sorting (n=23): time 0.0007751/0.8041, allocations: 210 kB / 457.3 MB, free: 14.79 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.77e-05/0.8041, allocations: 63.39 kB / 457.4 MB, free: 14.72 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002303/0.8044, allocations: 153.7 kB / 457.6 MB, free: 14.56 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.61e-05/0.8045, allocations: 37.7 kB / 457.6 MB, free: 14.52 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001498/0.8046, allocations: 140.4 kB / 457.7 MB, free: 14.38 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001079/0.8048, allocations: 63.23 kB / 457.8 MB, free: 14.31 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.612e-05/0.8048, allocations: 8 kB / 457.8 MB, free: 14.3 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001749/0.805, allocations: 330.8 kB / 458.1 MB, free: 13.97 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004379/0.8094, allocations: 60.62 kB / 458.2 MB, free: 13.91 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003697/0.8098, allocations: 145.7 kB / 458.3 MB, free: 13.74 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000454/0.8103, allocations: 185.4 kB / 458.5 MB, free: 13.53 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.577e-06/0.8103, allocations: 4 kB / 458.5 MB, free: 13.52 MB / 346.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.000685/0.811, allocations: 249.3 kB / 458.7 MB, free: 13.27 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.039e-05/0.8111, allocations: 4 kB / 458.8 MB, free: 13.27 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.284e-05/0.8111, allocations: 4 kB / 458.8 MB, free: 13.27 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.983e-05/0.8111, allocations: 4 kB / 458.8 MB, free: 13.26 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002459/0.8114, allocations: 31.92 kB / 458.8 MB, free: 13.23 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.11e-05/0.8114, allocations: 7.938 kB / 458.8 MB, free: 13.22 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002077/0.8117, allocations: 24.17 kB / 458.8 MB, free: 13.2 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.914e-05/0.8117, allocations: 12 kB / 458.8 MB, free: 13.19 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.0002822/0.812, allocations: 160.3 kB / 459 MB, free: 13.02 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.708e-05/0.8121, allocations: 15.81 kB / 459 MB, free: 13 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005344/0.8126, allocations: 189.2 kB / 459.2 MB, free: 12.81 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.593e-06/0.8126, allocations: 0 / 459.2 MB, free: 12.81 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.053e-06/0.8127, allocations: 0 / 459.2 MB, free: 12.81 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.578e-06/0.8127, allocations: 4 kB / 459.2 MB, free: 12.81 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001335/0.814, allocations: 0.591 MB / 459.8 MB, free: 12.16 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.544e-06/0.8141, allocations: 0 / 459.8 MB, free: 12.16 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001405/0.8142, allocations: 23.91 kB / 459.8 MB, free: 12.13 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.207e-06/0.8142, allocations: 3.938 kB / 459.8 MB, free: 12.13 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.688e-05/0.8143, allocations: 8 kB / 459.8 MB, free: 12.12 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.358e-06/0.8143, allocations: 0 / 459.8 MB, free: 12.12 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.464e-06/0.8143, allocations: 3.938 kB / 459.8 MB, free: 12.12 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005441/0.8149, allocations: 279.2 kB / 460.1 MB, free: 11.83 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.763e-05/0.815, allocations: 96.8 kB / 460.2 MB, free: 11.71 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.852e-05/0.815, allocations: 11.98 kB / 460.2 MB, free: 11.7 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001628/0.8152, allocations: 8 kB / 460.2 MB, free: 11.7 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001182/0.8153, allocations: 19.97 kB / 460.2 MB, free: 11.68 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.041e-05/0.8154, allocations: 8 kB / 460.2 MB, free: 11.67 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001165/0.8155, allocations: 103.2 kB / 460.3 MB, free: 11.57 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.01e-07/0.8155, allocations: 0 / 460.3 MB, free: 11.57 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006031/0.8162, allocations: 40 kB / 460.4 MB, free: 11.53 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.0002459/0.8164, allocations: 111 kB / 460.5 MB, free: 11.41 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0006043/0.817, allocations: 175.8 kB / 460.7 MB, free: 11.24 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/0.8171, allocations: 0 / 460.7 MB, free: 11.24 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002773/0.8174, allocations: 80.47 kB / 460.7 MB, free: 11.16 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005001/0.8179, allocations: 27.98 kB / 460.8 MB, free: 11.13 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009987/0.8189, allocations: 417.4 kB / 461.2 MB, free: 10.7 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004375/0.8194, allocations: 0.7389 MB / 461.9 MB, free: 9.934 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.319e-05/0.8195, allocations: 23.42 kB / 461.9 MB, free: 9.91 MB / 346.7 MB Notification: Performance of SimCode: time 3.1e-07/0.8195, allocations: 0 / 461.9 MB, free: 9.91 MB / 346.7 MB Notification: Performance of Templates: time 0.007349/0.8268, allocations: 2.381 MB / 464.3 MB, free: 7.531 MB / 346.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (rm -f Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches