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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001855/0.001855, allocations: 109.3 kB / 17.73 MB, free: 5.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001979/0.001979, allocations: 188.2 kB / 18.66 MB, free: 4.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.467/1.467, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001594/0.001594, allocations: 55.92 kB / 328.5 MB, free: 3.324 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1057/0.1073, allocations: 46.62 MB / 375.1 MB, free: 4.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003302/0.1107, allocations: 1.679 MB / 376.8 MB, free: 2.906 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00082/0.1115, allocations: 260 kB / 377.1 MB, free: 2.652 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00016/0.1117, allocations: 7.938 kB / 377.1 MB, free: 2.645 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001904/0.1119, allocations: 23.73 kB / 377.1 MB, free: 2.621 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.438e-05/0.112, allocations: 23.73 kB / 377.1 MB, free: 2.598 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004768/0.1125, allocations: 119.8 kB / 377.2 MB, free: 2.48 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004013/0.1129, allocations: 267.5 kB / 377.5 MB, free: 2.219 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003751/0.1133, allocations: 185.5 kB / 377.7 MB, free: 2.035 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001346/0.1134, allocations: 91.7 kB / 377.8 MB, free: 1.945 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001535/0.1136, allocations: 99.53 kB / 377.9 MB, free: 1.848 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.57e-05/0.1137, allocations: 27.94 kB / 377.9 MB, free: 1.82 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.796e-05/0.1137, allocations: 31.98 kB / 377.9 MB, free: 1.789 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.334e-05/0.1138, allocations: 51.84 kB / 378 MB, free: 1.738 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001334/0.114, allocations: 103.5 kB / 378.1 MB, free: 1.637 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003798/0.1143, allocations: 251 kB / 378.3 MB, free: 1.391 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.1144, allocations: 4 kB / 378.3 MB, free: 1.387 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.267e-06/0.1144, allocations: 0 / 378.3 MB, free: 1.387 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.195e-05/0.1144, allocations: 0 / 378.3 MB, free: 1.387 MB / 318.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.0009258/0.1153, allocations: 490.2 kB / 378.8 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.844e-05/0.1154, allocations: 15.83 kB / 378.8 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.516e-05/0.1155, allocations: 20.75 kB / 378.8 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004399/0.1159, allocations: 236 kB / 379.1 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.728e-05/0.116, allocations: 24.94 kB / 379.1 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.609e-05/0.116, allocations: 32.38 kB / 379.1 MB, free: 0.5 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005095/0.1165, allocations: 274.5 kB / 379.4 MB, free: 220 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.274e-05/0.1166, allocations: 192 / 379.4 MB, free: 220 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.361e-05/0.1166, allocations: 11.94 kB / 379.4 MB, free: 208 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.168e-06/0.1166, allocations: 4 kB / 379.4 MB, free: 204 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003222/0.117, allocations: 161.6 kB / 379.6 MB, free: 40 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2399/0.3569, allocations: 0.9585 MB / 380.5 MB, free: 13.08 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003343/0.3573, allocations: 156.4 kB / 380.7 MB, free: 13.03 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001185/0.3574, allocations: 73.98 kB / 380.7 MB, free: 13 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.284e-05/0.3574, allocations: 6.688 kB / 380.7 MB, free: 13 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002463/0.3577, allocations: 127.1 kB / 380.9 MB, free: 12.92 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 3.015e-06/0.3577, allocations: 0 / 380.9 MB, free: 12.92 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0006274/0.3583, allocations: 210.1 kB / 381.1 MB, free: 12.83 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.811e-05/0.3584, allocations: 59.02 kB / 381.1 MB, free: 12.77 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000226/0.3587, allocations: 157 kB / 381.3 MB, free: 12.64 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.796e-05/0.3587, allocations: 39.53 kB / 381.3 MB, free: 12.6 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001438/0.3589, allocations: 133.3 kB / 381.5 MB, free: 12.48 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.784e-05/0.359, allocations: 61.62 kB / 381.5 MB, free: 12.44 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000155/0.3591, allocations: 78.78 kB / 381.6 MB, free: 12.39 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.559e-05/0.3592, allocations: 327.2 kB / 381.9 MB, free: 12.07 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001403/0.3594, allocations: 61.67 kB / 382 MB, free: 12.05 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001899/0.3596, allocations: 147.5 kB / 382.1 MB, free: 11.95 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002892/0.3599, allocations: 188.6 kB / 382.3 MB, free: 11.81 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.452e-06/0.3599, allocations: 8.062 kB / 382.3 MB, free: 11.81 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005381/0.3604, allocations: 249.5 kB / 382.5 MB, free: 11.7 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.523e-05/0.3605, allocations: 6.281 kB / 382.6 MB, free: 11.7 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.293e-05/0.3605, allocations: 2.469 kB / 382.6 MB, free: 11.7 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.601e-05/0.3605, allocations: 3.812 kB / 382.6 MB, free: 11.7 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002053/0.3607, allocations: 35.72 kB / 382.6 MB, free: 11.7 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.811e-05/0.3608, allocations: 7.812 kB / 382.6 MB, free: 11.69 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000159/0.3609, allocations: 33.17 kB / 382.6 MB, free: 11.67 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.087e-05/0.361, allocations: 12.81 kB / 382.6 MB, free: 11.67 MB / 318.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: 30 ($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,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 0.0001699/0.3612, allocations: 159.3 kB / 382.8 MB, free: 11.52 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.657e-05/0.3612, allocations: 15.38 kB / 382.8 MB, free: 11.52 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004906/0.3617, allocations: 197.1 kB / 383 MB, free: 11.42 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.248e-05/0.3617, allocations: 6.312 kB / 383 MB, free: 11.42 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.015e-06/0.3618, allocations: 0 / 383 MB, free: 11.42 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.334e-06/0.3618, allocations: 2.219 kB / 383 MB, free: 11.42 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001009/0.3628, allocations: 0.5873 MB / 383.6 MB, free: 10.98 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.958e-06/0.3628, allocations: 0.5156 kB / 383.6 MB, free: 10.98 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.743e-05/0.3629, allocations: 15.5 kB / 383.6 MB, free: 10.98 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.199e-06/0.3629, allocations: 1 kB / 383.6 MB, free: 10.98 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.077e-05/0.3629, allocations: 6.547 kB / 383.6 MB, free: 10.98 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.382e-06/0.363, allocations: 6.062 kB / 383.6 MB, free: 10.97 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.363, allocations: 0.5156 kB / 383.6 MB, free: 10.97 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000367/0.3633, allocations: 274 kB / 383.9 MB, free: 10.79 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.804e-05/0.3634, allocations: 94.78 kB / 384 MB, free: 10.68 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.713e-05/0.3634, allocations: 6.25 kB / 384 MB, free: 10.68 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.208e-05/0.3635, allocations: 9.125 kB / 384 MB, free: 10.68 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.524e-05/0.3636, allocations: 24.02 kB / 384 MB, free: 10.67 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.68e-05/0.3636, allocations: 6.312 kB / 384 MB, free: 10.67 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.268e-05/0.3637, allocations: 99.8 kB / 384.1 MB, free: 10.59 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3637, allocations: 0 / 384.1 MB, free: 10.59 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003539/0.3641, allocations: 55.84 kB / 384.2 MB, free: 10.57 MB / 318.1 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.localActive,transition1.enableFire,step.active,initialStep.active,$cse1,$cse2,$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: 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.0001574/0.3642, allocations: 113.2 kB / 384.3 MB, free: 10.47 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003799/0.3646, allocations: 189.8 kB / 384.5 MB, free: 10.41 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.3646, allocations: 0 / 384.5 MB, free: 10.41 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001603/0.3648, allocations: 80.73 kB / 384.6 MB, free: 10.39 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003431/0.3651, allocations: 22.66 kB / 384.6 MB, free: 10.38 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007514/0.3659, allocations: 337.2 kB / 384.9 MB, free: 10.16 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002342/0.3662, allocations: 0.7346 MB / 385.7 MB, free: 9.457 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001021/0.3663, allocations: 30.25 kB / 385.7 MB, free: 9.453 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.299e-05/0.3663, allocations: 26.38 kB / 385.7 MB, free: 9.441 MB / 318.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3663, allocations: 0 / 385.7 MB, free: 9.441 MB / 318.1 MB Notification: Performance of Templates: time 0.007276/0.3736, allocations: 1.875 MB / 387.6 MB, free: 9.293 MB / 318.1 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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches