Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.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,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001099/0.0011, allocations: 96.27 kB / 17.3 MB, free: 6.34 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.001332/0.001332, allocations: 181 kB / 18.21 MB, free: 5.523 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.908/1.908, allocations: 205.4 MB / 224.4 MB, free: 13.05 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.0004334/0.0004334, allocations: 9.156 kB / 281.4 MB, free: 3.434 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.1084, allocations: 47.58 MB / 328.9 MB, free: 3.777 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.001531/0.11, allocations: 1.216 MB / 330.2 MB, free: 2.551 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005955/0.1106, allocations: 263.2 kB / 330.4 MB, free: 2.293 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.852e-05/0.1107, allocations: 4 kB / 330.4 MB, free: 2.289 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 9.956e-05/0.1108, allocations: 23.81 kB / 330.4 MB, free: 2.266 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 4.466e-05/0.1108, allocations: 3.938 kB / 330.4 MB, free: 2.262 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003319/0.1112, allocations: 99.89 kB / 330.5 MB, free: 2.164 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002803/0.1115, allocations: 243.5 kB / 330.8 MB, free: 1.926 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002546/0.1117, allocations: 146.2 kB / 330.9 MB, free: 1.777 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.341e-05/0.1118, allocations: 71.7 kB / 331 MB, free: 1.707 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001157/0.112, allocations: 75.62 kB / 331.1 MB, free: 1.633 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.673e-05/0.112, allocations: 11.98 kB / 331.1 MB, free: 1.621 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.967e-05/0.1121, allocations: 15.98 kB / 331.1 MB, free: 1.605 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.017e-05/0.1121, allocations: 47.78 kB / 331.1 MB, free: 1.559 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 9.034e-05/0.1122, allocations: 97.23 kB / 331.2 MB, free: 1.457 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002245/0.1124, allocations: 207.2 kB / 331.4 MB, free: 1.254 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.455e-06/0.1125, allocations: 4 kB / 331.4 MB, free: 1.25 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.1125, allocations: 0 / 331.4 MB, free: 1.25 MB / 270.1 MB Notification: Performance of Transformations before backend: time 3.978e-06/0.1125, allocations: 0 / 331.4 MB, free: 1.25 MB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0005832/0.1131, allocations: 442.9 kB / 331.9 MB, free: 0.7656 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.586e-05/0.1131, allocations: 8.031 kB / 331.9 MB, free: 0.7578 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.505e-05/0.1132, allocations: 24.66 kB / 331.9 MB, free: 0.7344 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002199/0.1134, allocations: 228 kB / 332.1 MB, free: 484 kB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.206e-05/0.1134, allocations: 20.94 kB / 332.2 MB, free: 464 kB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4e-05/0.1135, allocations: 28.38 kB / 332.2 MB, free: 436 kB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003994/0.1139, allocations: 240 kB / 332.4 MB, free: 180 kB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.094e-05/0.1139, allocations: 192 / 332.4 MB, free: 180 kB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.844e-05/0.1139, allocations: 15.94 kB / 332.4 MB, free: 164 kB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.206e-06/0.114, allocations: 4 kB / 332.4 MB, free: 160 kB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002858/0.1142, allocations: 161.7 kB / 332.6 MB, free: 0 / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001216/0.1155, allocations: 0.7129 MB / 333.3 MB, free: 15.23 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003075/0.1158, allocations: 166.9 kB / 333.5 MB, free: 15.06 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000125/0.1159, allocations: 84.77 kB / 333.6 MB, free: 14.97 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.377e-05/0.116, allocations: 4 kB / 333.6 MB, free: 14.97 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002315/0.1162, allocations: 115.3 kB / 333.7 MB, free: 14.84 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.603e-06/0.1162, allocations: 0 / 333.7 MB, free: 14.84 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004263/0.1166, allocations: 210 kB / 333.9 MB, free: 14.63 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.004e-05/0.1167, allocations: 59.41 kB / 333.9 MB, free: 14.56 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000183/0.1169, allocations: 157.7 kB / 334.1 MB, free: 14.4 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.698e-05/0.117, allocations: 33.7 kB / 334.1 MB, free: 14.36 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001125/0.1171, allocations: 128.6 kB / 334.2 MB, free: 14.23 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.881e-05/0.1172, allocations: 67.17 kB / 334.3 MB, free: 14.16 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.281e-05/0.1173, allocations: 49.69 kB / 334.4 MB, free: 14.11 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001348/0.1174, allocations: 326.8 kB / 334.7 MB, free: 13.78 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001791/0.1176, allocations: 60.62 kB / 334.7 MB, free: 13.72 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001542/0.1178, allocations: 128.1 kB / 334.9 MB, free: 13.57 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002384/0.118, allocations: 178.6 kB / 335 MB, free: 13.37 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.057e-06/0.118, allocations: 4 kB / 335 MB, free: 13.37 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000415/0.1184, allocations: 237.2 kB / 335.3 MB, free: 13.13 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.613e-05/0.1185, allocations: 4.219 kB / 335.3 MB, free: 13.12 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.107e-06/0.1185, allocations: 15.92 kB / 335.3 MB, free: 13.11 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.591e-05/0.1185, allocations: 7.938 kB / 335.3 MB, free: 13.1 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001328/0.1186, allocations: 31.92 kB / 335.3 MB, free: 13.07 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.066e-05/0.1187, allocations: 4 kB / 335.3 MB, free: 13.07 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001059/0.1188, allocations: 27.69 kB / 335.4 MB, free: 13.04 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.717e-05/0.1188, allocations: 12 kB / 335.4 MB, free: 13.03 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,transition2.t_start,$PRE.transition2.t_start,transition2.fire,transition2.enableFire,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,step.active,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,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.0001472/0.119, allocations: 157.8 kB / 335.5 MB, free: 12.86 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.044e-05/0.119, allocations: 15.84 kB / 335.5 MB, free: 12.85 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003471/0.1193, allocations: 202.3 kB / 335.7 MB, free: 12.64 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.813e-06/0.1194, allocations: 4 kB / 335.7 MB, free: 12.64 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.1194, allocations: 3.938 kB / 335.7 MB, free: 12.64 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.821e-06/0.1194, allocations: 0 / 335.7 MB, free: 12.64 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007427/0.1201, allocations: 0.5763 MB / 336.3 MB, free: 12 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.1201, allocations: 0 / 336.3 MB, free: 12 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.598e-05/0.1202, allocations: 19.98 kB / 336.3 MB, free: 11.98 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.089e-06/0.1202, allocations: 4 kB / 336.3 MB, free: 11.98 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.547e-05/0.1203, allocations: 4 kB / 336.4 MB, free: 11.98 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.1203, allocations: 0 / 336.4 MB, free: 11.98 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/0.1203, allocations: 3.938 kB / 336.4 MB, free: 11.97 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002964/0.1206, allocations: 279.2 kB / 336.6 MB, free: 11.68 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.98e-05/0.1207, allocations: 92.86 kB / 336.7 MB, free: 11.57 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.709e-05/0.1207, allocations: 8 kB / 336.7 MB, free: 11.57 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001049/0.1208, allocations: 15.98 kB / 336.7 MB, free: 11.55 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.716e-05/0.1209, allocations: 23.91 kB / 336.8 MB, free: 11.53 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.498e-05/0.121, allocations: 8 kB / 336.8 MB, free: 11.52 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.855e-05/0.121, allocations: 91.27 kB / 336.9 MB, free: 11.43 MB / 286.1 MB Notification: Performance of sort global known variables: time 4.31e-07/0.121, allocations: 0 / 336.9 MB, free: 11.43 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003159/0.1213, allocations: 51.84 kB / 336.9 MB, free: 11.38 MB / 286.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 (transition2.enableFire,step.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.active,step.newActive,step.oldActive,transition2.fire,transition2.t_start,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 (26): * Single equations (assignments): 22 * 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.0001787/0.1215, allocations: 115.1 kB / 337 MB, free: 11.25 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003429/0.1219, allocations: 180 kB / 337.2 MB, free: 11.08 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.1219, allocations: 0 / 337.2 MB, free: 11.08 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001312/0.122, allocations: 83.91 kB / 337.3 MB, free: 11 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002795/0.1223, allocations: 19.98 kB / 337.3 MB, free: 10.98 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006735/0.123, allocations: 396.3 kB / 337.7 MB, free: 10.57 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004126/0.1234, allocations: 0.7365 MB / 338.4 MB, free: 9.805 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 7.902e-05/0.1235, allocations: 25.89 kB / 338.5 MB, free: 9.777 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.94e-05/0.1236, allocations: 31.36 kB / 338.5 MB, free: 9.75 MB / 286.1 MB Notification: Performance of SimCode: time 8.71e-07/0.1236, allocations: 0 / 338.5 MB, free: 9.75 MB / 286.1 MB Notification: Performance of Templates: time 0.005461/0.1291, allocations: 1.715 MB / 340.2 MB, free: 8.039 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.makefile (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches