Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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 trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_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_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001116/0.001116, allocations: 104.5 kB / 17.85 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0019/0.0019, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.34/1.34, allocations: 227.4 MB / 246.9 MB, free: 9.016 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001332/0.001332, allocations: 65.36 kB / 306.9 MB, free: 0.8203 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.1092, allocations: 50.53 MB / 357.4 MB, free: 14.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.00344/0.1127, allocations: 1.776 MB / 359.2 MB, free: 12.5 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008055/0.1136, allocations: 311.1 kB / 359.5 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001618/0.1137, allocations: 4 kB / 359.5 MB, free: 12.19 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001603/0.114, allocations: 11.81 kB / 359.5 MB, free: 12.18 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 6.08e-05/0.114, allocations: 11.92 kB / 359.5 MB, free: 12.17 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004167/0.1144, allocations: 107.8 kB / 359.6 MB, free: 12.06 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003509/0.1148, allocations: 251.5 kB / 359.9 MB, free: 11.82 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003268/0.1152, allocations: 183.1 kB / 360.1 MB, free: 11.63 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001276/0.1153, allocations: 79.7 kB / 360.1 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001415/0.1154, allocations: 95.53 kB / 360.2 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.882e-05/0.1155, allocations: 16 kB / 360.2 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.994e-05/0.1156, allocations: 27.98 kB / 360.3 MB, free: 11.42 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.834e-05/0.1156, allocations: 47.83 kB / 360.3 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001124/0.1158, allocations: 91.53 kB / 360.4 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002073/0.116, allocations: 167.9 kB / 360.6 MB, free: 11.12 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.116, allocations: 0 / 360.6 MB, free: 11.12 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.92e-07/0.116, allocations: 4 kB / 360.6 MB, free: 11.11 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.769e-06/0.116, allocations: 0 / 360.6 MB, free: 11.11 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.0007629/0.1168, allocations: 0.4908 MB / 361.1 MB, free: 10.57 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.416e-05/0.1168, allocations: 8.031 kB / 361.1 MB, free: 10.56 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002345/0.1171, allocations: 32.64 kB / 361.1 MB, free: 10.53 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002612/0.1173, allocations: 224.1 kB / 361.3 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.772e-05/0.1174, allocations: 24.94 kB / 361.3 MB, free: 10.25 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.989e-05/0.1174, allocations: 28.38 kB / 361.4 MB, free: 10.22 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004634/0.1179, allocations: 274.5 kB / 361.6 MB, free: 9.93 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.194e-05/0.1179, allocations: 192 / 361.6 MB, free: 9.93 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.298e-05/0.118, allocations: 19.92 kB / 361.7 MB, free: 9.91 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.207e-06/0.118, allocations: 11.94 kB / 361.7 MB, free: 9.898 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003221/0.1183, allocations: 161.6 kB / 361.8 MB, free: 9.738 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001233/0.1196, allocations: 0.9633 MB / 362.8 MB, free: 8.707 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003071/0.1199, allocations: 173.4 kB / 363 MB, free: 8.52 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000125/0.12, allocations: 85.2 kB / 363 MB, free: 8.434 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.544e-05/0.1201, allocations: 8 kB / 363.1 MB, free: 8.426 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002577/0.1203, allocations: 148.4 kB / 363.2 MB, free: 8.266 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.453e-06/0.1203, allocations: 0 / 363.2 MB, free: 8.266 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004457/0.1208, allocations: 221.2 kB / 363.4 MB, free: 8.043 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.434e-05/0.1208, allocations: 81.11 kB / 363.5 MB, free: 7.945 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001299/0.121, allocations: 164.4 kB / 363.7 MB, free: 7.777 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.122e-05/0.121, allocations: 37.7 kB / 363.7 MB, free: 7.734 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.598e-05/0.1211, allocations: 136.5 kB / 363.8 MB, free: 7.598 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.085e-05/0.1212, allocations: 63.19 kB / 363.9 MB, free: 7.535 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001052/0.1213, allocations: 77.59 kB / 364 MB, free: 7.453 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000135/0.1214, allocations: 334.8 kB / 364.3 MB, free: 7.117 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001281/0.1216, allocations: 67.75 kB / 364.4 MB, free: 7.051 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001687/0.1217, allocations: 140.5 kB / 364.5 MB, free: 6.883 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000283/0.122, allocations: 193 kB / 364.7 MB, free: 6.664 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.125e-06/0.122, allocations: 0 / 364.7 MB, free: 6.664 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004012/0.1224, allocations: 257.3 kB / 364.9 MB, free: 6.406 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.95e-05/0.1225, allocations: 8 kB / 364.9 MB, free: 6.398 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.733e-06/0.1225, allocations: 0 / 364.9 MB, free: 6.398 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.74e-05/0.1225, allocations: 4 kB / 364.9 MB, free: 6.395 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001471/0.1227, allocations: 35.86 kB / 365 MB, free: 6.359 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.067e-05/0.1227, allocations: 4 kB / 365 MB, free: 6.355 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001109/0.1228, allocations: 27.78 kB / 365 MB, free: 6.328 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.8e-05/0.1228, allocations: 8 kB / 365 MB, free: 6.32 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.condition,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.0001745/0.123, allocations: 173.9 kB / 365.2 MB, free: 6.141 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.746e-05/0.123, allocations: 19.75 kB / 365.2 MB, free: 6.121 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.722e-05/0.1231, allocations: 20.83 kB / 365.2 MB, free: 6.102 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.449e-06/0.1231, allocations: 4 kB / 365.2 MB, free: 6.098 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.1231, allocations: 0 / 365.2 MB, free: 6.098 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.1231, allocations: 0 / 365.2 MB, free: 6.098 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007072/0.1238, allocations: 0.5783 MB / 365.8 MB, free: 5.461 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.067e-06/0.1239, allocations: 4 kB / 365.8 MB, free: 5.457 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.344e-05/0.1239, allocations: 15.92 kB / 365.8 MB, free: 5.441 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.48e-06/0.1239, allocations: 4 kB / 365.8 MB, free: 5.438 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.667e-05/0.124, allocations: 7.938 kB / 365.8 MB, free: 5.43 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.717e-06/0.124, allocations: 4 kB / 365.8 MB, free: 5.426 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.124, allocations: 0 / 365.8 MB, free: 5.426 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003101/0.1243, allocations: 272.1 kB / 366.1 MB, free: 5.141 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.896e-05/0.1244, allocations: 92.86 kB / 366.2 MB, free: 5.031 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.882e-05/0.1244, allocations: 7.938 kB / 366.2 MB, free: 5.023 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.081e-05/0.1245, allocations: 11.98 kB / 366.2 MB, free: 5.012 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.293e-05/0.1246, allocations: 23.91 kB / 366.2 MB, free: 4.988 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.175e-05/0.1246, allocations: 4 kB / 366.3 MB, free: 4.984 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.699e-05/0.1247, allocations: 103.2 kB / 366.4 MB, free: 4.883 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1247, allocations: 0 / 366.4 MB, free: 4.883 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003049/0.125, allocations: 51.84 kB / 366.4 MB, free: 4.832 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.active,step.localActive,transition1.enableFire,initialStep.localActive,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.condition,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.0001148/0.1251, allocations: 103.2 kB / 366.5 MB, free: 4.723 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003174/0.1254, allocations: 179.6 kB / 366.7 MB, free: 4.547 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.1254, allocations: 0 / 366.7 MB, free: 4.547 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001257/0.1256, allocations: 75.91 kB / 366.8 MB, free: 4.473 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002878/0.1259, allocations: 28.59 kB / 366.8 MB, free: 4.445 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006714/0.1265, allocations: 429.2 kB / 367.2 MB, free: 3.992 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003322/0.1269, allocations: 0.7329 MB / 367.9 MB, free: 3.234 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.135e-05/0.127, allocations: 31.38 kB / 368 MB, free: 3.203 MB / 302.1 MB Notification: Performance of SimCode: time 4.01e-07/0.127, allocations: 0 / 368 MB, free: 3.203 MB / 302.1 MB Notification: Performance of Templates: time 0.004479/0.1314, allocations: 2.238 MB / 370.2 MB, free: 0.9688 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches