Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001712/0.001713, allocations: 105.6 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002061/0.002061, allocations: 208.1 kB / 19.25 MB, free: 3.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.437/1.437, allocations: 227.7 MB / 247.7 MB, free: 10.34 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001949/0.001949, allocations: 63.47 kB / 307.9 MB, free: 0.5352 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1021, allocations: 50.54 MB / 358.4 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003119/0.1053, allocations: 1.705 MB / 360.1 MB, free: 12.27 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00066/0.106, allocations: 295.2 kB / 360.4 MB, free: 11.98 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.167e-05/0.1061, allocations: 4 kB / 360.4 MB, free: 11.98 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001485/0.1063, allocations: 31.67 kB / 360.4 MB, free: 11.95 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 5.113e-05/0.1063, allocations: 15.8 kB / 360.5 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003597/0.1067, allocations: 119.8 kB / 360.6 MB, free: 11.81 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003381/0.107, allocations: 267.5 kB / 360.8 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003123/0.1073, allocations: 185.5 kB / 361 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001168/0.1075, allocations: 91.7 kB / 361.1 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001356/0.1076, allocations: 103.5 kB / 361.2 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.582e-05/0.1077, allocations: 20 kB / 361.2 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.949e-05/0.1077, allocations: 35.98 kB / 361.3 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.049e-05/0.1078, allocations: 63.77 kB / 361.3 MB, free: 11.06 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000113/0.1079, allocations: 95.53 kB / 361.4 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002827/0.1082, allocations: 239.2 kB / 361.7 MB, free: 10.73 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.595e-06/0.1082, allocations: 0 / 361.7 MB, free: 10.73 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.81e-07/0.1083, allocations: 0 / 361.7 MB, free: 10.73 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.839e-06/0.1083, allocations: 4 kB / 361.7 MB, free: 10.73 MB / 302.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.0007019/0.109, allocations: 495 kB / 362.1 MB, free: 10.19 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.566e-05/0.109, allocations: 8.031 kB / 362.1 MB, free: 10.18 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002735/0.1093, allocations: 40.62 kB / 362.2 MB, free: 10.14 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002631/0.1096, allocations: 228 kB / 362.4 MB, free: 9.879 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.18e-05/0.1096, allocations: 28.92 kB / 362.4 MB, free: 9.852 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.066e-05/0.1097, allocations: 24.38 kB / 362.5 MB, free: 9.828 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004529/0.1101, allocations: 270.6 kB / 362.7 MB, free: 9.543 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.199e-05/0.1102, allocations: 8.125 kB / 362.7 MB, free: 9.535 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.672e-05/0.1102, allocations: 11.94 kB / 362.7 MB, free: 9.523 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.639e-05/0.1102, allocations: 8 kB / 362.8 MB, free: 9.516 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003077/0.1105, allocations: 165.5 kB / 362.9 MB, free: 9.352 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001179/0.1117, allocations: 0.9594 MB / 363.9 MB, free: 8.324 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003221/0.1121, allocations: 175.9 kB / 364 MB, free: 8.137 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001275/0.1122, allocations: 85.61 kB / 364.1 MB, free: 8.047 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.051e-05/0.1122, allocations: 4 kB / 364.1 MB, free: 8.043 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002819/0.1125, allocations: 133.9 kB / 364.3 MB, free: 7.895 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.512e-06/0.1125, allocations: 0 / 364.3 MB, free: 7.895 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004409/0.113, allocations: 232.8 kB / 364.5 MB, free: 7.664 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.252e-05/0.1131, allocations: 81.11 kB / 364.6 MB, free: 7.566 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001248/0.1132, allocations: 149.6 kB / 364.7 MB, free: 7.41 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.657e-05/0.1132, allocations: 33.7 kB / 364.7 MB, free: 7.371 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001216/0.1134, allocations: 148.5 kB / 364.9 MB, free: 7.223 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.377e-05/0.1134, allocations: 67.27 kB / 365 MB, free: 7.156 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000109/0.1135, allocations: 77.69 kB / 365 MB, free: 7.074 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001436/0.1137, allocations: 326.8 kB / 365.4 MB, free: 6.746 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001238/0.1138, allocations: 63.75 kB / 365.4 MB, free: 6.684 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000199/0.114, allocations: 140.5 kB / 365.6 MB, free: 6.516 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003016/0.1143, allocations: 204.4 kB / 365.8 MB, free: 6.285 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.589e-06/0.1143, allocations: 0 / 365.8 MB, free: 6.285 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003913/0.1147, allocations: 257.1 kB / 366 MB, free: 6.027 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.582e-05/0.1148, allocations: 4 kB / 366 MB, free: 6.023 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.1148, allocations: 4.281 kB / 366 MB, free: 6.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.551e-05/0.1148, allocations: 8 kB / 366 MB, free: 6.012 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001396/0.1149, allocations: 31.92 kB / 366.1 MB, free: 5.98 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.737e-06/0.115, allocations: 4 kB / 366.1 MB, free: 5.977 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001045/0.1151, allocations: 23.75 kB / 366.1 MB, free: 5.953 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.505e-05/0.1151, allocations: 19.98 kB / 366.1 MB, free: 5.934 MB / 302.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.0001464/0.1153, allocations: 153.7 kB / 366.2 MB, free: 5.773 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.683e-05/0.1153, allocations: 15.81 kB / 366.3 MB, free: 5.758 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.624e-05/0.1154, allocations: 28.83 kB / 366.3 MB, free: 5.727 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.1154, allocations: 3.938 kB / 366.3 MB, free: 5.723 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.531e-06/0.1154, allocations: 0 / 366.3 MB, free: 5.723 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.1154, allocations: 4 kB / 366.3 MB, free: 5.719 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007659/0.1162, allocations: 0.5674 MB / 366.9 MB, free: 5.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.1162, allocations: 7.938 kB / 366.9 MB, free: 5.082 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.918e-05/0.1163, allocations: 11.98 kB / 366.9 MB, free: 5.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.552e-06/0.1163, allocations: 4 kB / 366.9 MB, free: 5.066 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.705e-05/0.1163, allocations: 11.94 kB / 366.9 MB, free: 5.055 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.847e-06/0.1163, allocations: 4 kB / 366.9 MB, free: 5.051 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.1163, allocations: 0 / 366.9 MB, free: 5.051 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003269/0.1166, allocations: 283.2 kB / 367.2 MB, free: 4.758 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.335e-05/0.1167, allocations: 85.02 kB / 367.3 MB, free: 4.656 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.046e-05/0.1167, allocations: 11.94 kB / 367.3 MB, free: 4.645 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.475e-05/0.1168, allocations: 11.98 kB / 367.3 MB, free: 4.633 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.91e-05/0.1169, allocations: 15.98 kB / 367.3 MB, free: 4.617 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.493e-05/0.1169, allocations: 7.984 kB / 367.3 MB, free: 4.609 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.217e-05/0.117, allocations: 99.27 kB / 367.4 MB, free: 4.512 MB / 302.1 MB Notification: Performance of sort global known variables: time 2e-07/0.117, allocations: 0 / 367.4 MB, free: 4.512 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003005/0.1173, allocations: 51.75 kB / 367.5 MB, free: 4.461 MB / 302.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.0001263/0.1175, allocations: 107.2 kB / 367.6 MB, free: 4.348 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003731/0.1178, allocations: 195.9 kB / 367.8 MB, free: 4.156 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1179, allocations: 0 / 367.8 MB, free: 4.156 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001324/0.118, allocations: 79.91 kB / 367.8 MB, free: 4.078 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003175/0.1183, allocations: 30.11 kB / 367.9 MB, free: 4.051 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000623/0.119, allocations: 354.9 kB / 368.2 MB, free: 3.668 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003662/0.1193, allocations: 0.7365 MB / 368.9 MB, free: 2.898 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.601e-05/0.1194, allocations: 19.44 kB / 369 MB, free: 2.879 MB / 302.1 MB Notification: Performance of SimCode: time 1.963e-06/0.1194, allocations: 0 / 369 MB, free: 2.879 MB / 302.1 MB Notification: Performance of Templates: time 0.004465/0.1239, allocations: 2.249 MB / 371.2 MB, free: 0.6367 MB / 302.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches