Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2.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_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001281/0.001281, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001348/0.001348, allocations: 207.9 kB / 19.25 MB, free: 3.898 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.442/1.442, allocations: 227.7 MB / 247.7 MB, free: 10.31 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.001875/0.001875, allocations: 70.42 kB / 307.9 MB, free: 0.4961 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09826/0.1001, allocations: 50.54 MB / 358.4 MB, free: 13.94 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003053/0.1032, allocations: 1.661 MB / 360.1 MB, free: 12.27 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007047/0.104, allocations: 299.1 kB / 360.4 MB, free: 11.97 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.801e-05/0.1041, allocations: 8 kB / 360.4 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001362/0.1042, allocations: 31.67 kB / 360.4 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 4.364e-05/0.1043, allocations: 15.8 kB / 360.4 MB, free: 11.92 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003673/0.1046, allocations: 119.8 kB / 360.5 MB, free: 11.8 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003335/0.105, allocations: 263.6 kB / 360.8 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000326/0.1053, allocations: 194.9 kB / 361 MB, free: 11.35 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001167/0.1054, allocations: 95.62 kB / 361.1 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001457/0.1056, allocations: 107.5 kB / 361.2 MB, free: 11.15 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.878e-05/0.1056, allocations: 28 kB / 361.2 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.155e-05/0.1057, allocations: 31.98 kB / 361.3 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.846e-05/0.1058, allocations: 55.84 kB / 361.3 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001242/0.1059, allocations: 107.5 kB / 361.4 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002891/0.1062, allocations: 235.5 kB / 361.6 MB, free: 10.7 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.1062, allocations: 0 / 361.6 MB, free: 10.7 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1063, allocations: 0 / 361.6 MB, free: 10.7 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.61e-06/0.1063, allocations: 0 / 361.6 MB, free: 10.7 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.000731/0.107, allocations: 0.4908 MB / 362.1 MB, free: 10.15 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.356e-05/0.107, allocations: 12.03 kB / 362.1 MB, free: 10.14 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002686/0.1073, allocations: 36.64 kB / 362.2 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002713/0.1076, allocations: 236 kB / 362.4 MB, free: 9.836 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.577e-05/0.1076, allocations: 20.94 kB / 362.4 MB, free: 9.816 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.198e-05/0.1077, allocations: 28.38 kB / 362.5 MB, free: 9.789 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004671/0.1082, allocations: 270.5 kB / 362.7 MB, free: 9.504 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.105e-05/0.1082, allocations: 4.188 kB / 362.7 MB, free: 9.5 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.722e-05/0.1082, allocations: 11.94 kB / 362.7 MB, free: 9.488 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.608e-06/0.1082, allocations: 8 kB / 362.7 MB, free: 9.48 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003187/0.1086, allocations: 165.6 kB / 362.9 MB, free: 9.316 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001235/0.1098, allocations: 0.9672 MB / 363.9 MB, free: 8.281 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003059/0.1101, allocations: 169.4 kB / 364 MB, free: 8.098 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001402/0.1103, allocations: 85.72 kB / 364.1 MB, free: 8.008 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.216e-05/0.1103, allocations: 0 / 364.1 MB, free: 8.008 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002936/0.1106, allocations: 144.5 kB / 364.3 MB, free: 7.852 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.322e-06/0.1106, allocations: 0 / 364.3 MB, free: 7.852 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004545/0.1111, allocations: 221.2 kB / 364.5 MB, free: 7.629 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.885e-05/0.1112, allocations: 85.09 kB / 364.6 MB, free: 7.527 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001381/0.1113, allocations: 161.5 kB / 364.7 MB, free: 7.359 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.063e-05/0.1113, allocations: 37.7 kB / 364.8 MB, free: 7.316 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001035/0.1115, allocations: 132.5 kB / 364.9 MB, free: 7.184 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.237e-05/0.1115, allocations: 67.17 kB / 365 MB, free: 7.117 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000113/0.1117, allocations: 85.72 kB / 365 MB, free: 7.027 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000164/0.1118, allocations: 330.8 kB / 365.4 MB, free: 6.695 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001242/0.112, allocations: 67.69 kB / 365.4 MB, free: 6.629 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001852/0.1122, allocations: 140.5 kB / 365.6 MB, free: 6.461 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002775/0.1124, allocations: 192.4 kB / 365.8 MB, free: 6.242 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.438e-06/0.1125, allocations: 4 kB / 365.8 MB, free: 6.238 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.000396/0.1129, allocations: 253.2 kB / 366 MB, free: 5.984 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.697e-05/0.1129, allocations: 6.188 kB / 366 MB, free: 5.98 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.015e-05/0.1129, allocations: 4.281 kB / 366 MB, free: 5.977 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.104e-05/0.1129, allocations: 8 kB / 366 MB, free: 5.969 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001404/0.1131, allocations: 31.92 kB / 366.1 MB, free: 5.938 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.978e-05/0.1131, allocations: 7.938 kB / 366.1 MB, free: 5.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.437e-05/0.1132, allocations: 23.78 kB / 366.1 MB, free: 5.906 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.155e-05/0.1132, allocations: 16 kB / 366.1 MB, free: 5.891 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.0001528/0.1134, allocations: 157.7 kB / 366.3 MB, free: 5.727 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.705e-05/0.1134, allocations: 15.81 kB / 366.3 MB, free: 5.711 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.615e-05/0.1135, allocations: 12.84 kB / 366.3 MB, free: 5.695 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.1135, allocations: 8 kB / 366.3 MB, free: 5.688 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/0.1135, allocations: 3.984 kB / 366.3 MB, free: 5.684 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.276e-06/0.1135, allocations: 7.984 kB / 366.3 MB, free: 5.676 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007526/0.1143, allocations: 0.5759 MB / 366.9 MB, free: 5.039 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.1143, allocations: 0 / 366.9 MB, free: 5.039 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.126e-05/0.1144, allocations: 15.92 kB / 366.9 MB, free: 5.023 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.1144, allocations: 4 kB / 366.9 MB, free: 5.02 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.404e-05/0.1144, allocations: 7.938 kB / 366.9 MB, free: 5.012 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.028e-06/0.1144, allocations: 4 kB / 366.9 MB, free: 5.008 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.1144, allocations: 0 / 366.9 MB, free: 5.008 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000329/0.1147, allocations: 271.8 kB / 367.2 MB, free: 4.727 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.627e-05/0.1148, allocations: 92.86 kB / 367.3 MB, free: 4.617 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.964e-05/0.1148, allocations: 11.94 kB / 367.3 MB, free: 4.605 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.39e-05/0.1149, allocations: 15.98 kB / 367.3 MB, free: 4.59 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.559e-05/0.115, allocations: 19.98 kB / 367.3 MB, free: 4.57 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.151e-05/0.115, allocations: 11.88 kB / 367.3 MB, free: 4.559 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.588e-05/0.1151, allocations: 106.3 kB / 367.4 MB, free: 4.457 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1151, allocations: 0 / 367.4 MB, free: 4.457 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002951/0.1154, allocations: 51.84 kB / 367.5 MB, free: 4.406 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,step.active,transition1.enableFire,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.0001218/0.1156, allocations: 99.25 kB / 367.6 MB, free: 4.301 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003795/0.1159, allocations: 196.1 kB / 367.8 MB, free: 4.109 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.1159, allocations: 0 / 367.8 MB, free: 4.109 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001392/0.1161, allocations: 83.84 kB / 367.8 MB, free: 4.027 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002836/0.1164, allocations: 26.33 kB / 367.9 MB, free: 4.004 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006319/0.117, allocations: 358.7 kB / 368.2 MB, free: 3.617 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003955/0.1174, allocations: 0.7287 MB / 368.9 MB, free: 2.859 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.716e-05/0.1175, allocations: 23.44 kB / 369 MB, free: 2.836 MB / 302.1 MB Notification: Performance of SimCode: time 6.71e-07/0.1175, allocations: 0 / 369 MB, free: 2.836 MB / 302.1 MB Notification: Performance of Templates: time 0.004279/0.1218, allocations: 2.261 MB / 371.2 MB, free: 0.5781 MB / 302.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches