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.002332/0.002332, allocations: 111.8 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.003431/0.003432, allocations: 210.8 kB / 19.4 MB, free: 3.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.862/2.862, allocations: 227.4 MB / 247.6 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001754/0.001754, allocations: 59.91 kB / 359.4 MB, free: 12.97 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6308/0.6326, allocations: 50.55 MB / 409.9 MB, free: 1.609 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.004424/0.6371, allocations: 1.666 MB / 411.6 MB, free: 15.94 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001109/0.6382, allocations: 299.1 kB / 411.9 MB, free: 15.65 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001577/0.6384, allocations: 11.94 kB / 411.9 MB, free: 15.64 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002237/0.6387, allocations: 23.69 kB / 411.9 MB, free: 15.61 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.752e-05/0.6388, allocations: 19.8 kB / 411.9 MB, free: 15.59 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000636/0.6394, allocations: 115.8 kB / 412 MB, free: 15.48 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005161/0.64, allocations: 267.5 kB / 412.3 MB, free: 15.22 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005148/0.6405, allocations: 202.9 kB / 412.5 MB, free: 15.02 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001633/0.6407, allocations: 91.7 kB / 412.6 MB, free: 14.93 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002168/0.6409, allocations: 99.53 kB / 412.7 MB, free: 14.83 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.409e-05/0.641, allocations: 24 kB / 412.7 MB, free: 14.8 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001095/0.6411, allocations: 35.94 kB / 412.7 MB, free: 14.77 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.88e-05/0.6412, allocations: 59.83 kB / 412.8 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001797/0.6414, allocations: 95.52 kB / 412.9 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004382/0.6418, allocations: 255.1 kB / 413.1 MB, free: 14.37 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.101e-06/0.6419, allocations: 4 kB / 413.1 MB, free: 14.36 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.6419, allocations: 3.938 kB / 413.1 MB, free: 14.36 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.14e-05/0.6419, allocations: 0 / 413.1 MB, free: 14.36 MB / 334.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.001267/0.6432, allocations: 0.4919 MB / 413.6 MB, free: 13.81 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.464e-05/0.6433, allocations: 8.031 kB / 413.6 MB, free: 13.8 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003664/0.6436, allocations: 28.75 kB / 413.7 MB, free: 13.78 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005601/0.6442, allocations: 236 kB / 413.9 MB, free: 13.51 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.427e-05/0.6443, allocations: 20.94 kB / 413.9 MB, free: 13.49 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.754e-05/0.6444, allocations: 28.38 kB / 413.9 MB, free: 13.46 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008071/0.6452, allocations: 270.5 kB / 414.2 MB, free: 13.17 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.377e-05/0.6452, allocations: 4.188 kB / 414.2 MB, free: 13.17 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.634e-05/0.6453, allocations: 15.94 kB / 414.2 MB, free: 13.15 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.014e-05/0.6453, allocations: 11.98 kB / 414.2 MB, free: 13.14 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007554/0.6461, allocations: 161.6 kB / 414.4 MB, free: 12.98 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001831/0.6479, allocations: 0.9555 MB / 415.4 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004597/0.6484, allocations: 180.9 kB / 415.5 MB, free: 11.77 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001863/0.6486, allocations: 81.64 kB / 415.6 MB, free: 11.69 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.048e-05/0.6487, allocations: 4 kB / 415.6 MB, free: 11.68 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003389/0.649, allocations: 140 kB / 415.8 MB, free: 11.53 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 3.126e-06/0.649, allocations: 0 / 415.8 MB, free: 11.53 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006712/0.6497, allocations: 221.2 kB / 416 MB, free: 11.31 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.255e-05/0.6498, allocations: 85.11 kB / 416.1 MB, free: 11.21 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004315/0.6541, allocations: 153.8 kB / 416.2 MB, free: 11.05 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.054e-05/0.6542, allocations: 37.7 kB / 416.2 MB, free: 11 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001862/0.6544, allocations: 144.5 kB / 416.4 MB, free: 10.86 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001022/0.6545, allocations: 63.19 kB / 416.4 MB, free: 10.8 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001756/0.6547, allocations: 69.69 kB / 416.5 MB, free: 10.72 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002165/0.655, allocations: 330.8 kB / 416.8 MB, free: 10.39 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002136/0.6552, allocations: 67.75 kB / 416.9 MB, free: 10.32 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002954/0.6555, allocations: 140.5 kB / 417 MB, free: 10.16 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000454/0.656, allocations: 196.3 kB / 417.2 MB, free: 9.934 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.901e-06/0.656, allocations: 3.938 kB / 417.2 MB, free: 9.93 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.000674/0.6567, allocations: 249.3 kB / 417.5 MB, free: 9.68 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.9e-05/0.6567, allocations: 8 kB / 417.5 MB, free: 9.672 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.666e-05/0.6568, allocations: 7.938 kB / 417.5 MB, free: 9.664 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.702e-05/0.6568, allocations: 4 kB / 417.5 MB, free: 9.66 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002396/0.657, allocations: 31.92 kB / 417.5 MB, free: 9.629 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.771e-05/0.6571, allocations: 4 kB / 417.5 MB, free: 9.625 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000185/0.6573, allocations: 27.75 kB / 417.6 MB, free: 9.598 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.806e-05/0.6573, allocations: 16 kB / 417.6 MB, free: 9.582 MB / 334.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.0002839/0.6576, allocations: 169.7 kB / 417.7 MB, free: 9.406 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.823e-05/0.6577, allocations: 11.91 kB / 417.7 MB, free: 9.395 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.37e-05/0.6578, allocations: 20.83 kB / 417.8 MB, free: 9.375 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.075e-06/0.6578, allocations: 4 kB / 417.8 MB, free: 9.371 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.538e-06/0.6578, allocations: 0 / 417.8 MB, free: 9.371 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.645e-06/0.6578, allocations: 0 / 417.8 MB, free: 9.371 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001252/0.6591, allocations: 0.5781 MB / 418.4 MB, free: 8.73 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.729e-06/0.6591, allocations: 0 / 418.4 MB, free: 8.73 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000104/0.6592, allocations: 19.98 kB / 418.4 MB, free: 8.711 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.468e-06/0.6592, allocations: 4 kB / 418.4 MB, free: 8.707 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.921e-05/0.6593, allocations: 4 kB / 418.4 MB, free: 8.703 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.793e-06/0.6593, allocations: 11.81 kB / 418.4 MB, free: 8.691 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.6593, allocations: 7.984 kB / 418.4 MB, free: 8.684 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005166/0.6598, allocations: 272 kB / 418.7 MB, free: 8.398 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.326e-05/0.6599, allocations: 85.02 kB / 418.7 MB, free: 8.297 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.451e-05/0.66, allocations: 12 kB / 418.8 MB, free: 8.285 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001485/0.6601, allocations: 11.92 kB / 418.8 MB, free: 8.273 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000124/0.6603, allocations: 15.98 kB / 418.8 MB, free: 8.258 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.017e-05/0.6603, allocations: 11.98 kB / 418.8 MB, free: 8.246 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000129/0.6605, allocations: 98.64 kB / 418.9 MB, free: 8.152 MB / 334.1 MB Notification: Performance of sort global known variables: time 5.91e-07/0.6605, allocations: 0 / 418.9 MB, free: 8.152 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005285/0.661, allocations: 59.69 kB / 419 MB, free: 8.094 MB / 334.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.0002093/0.6612, allocations: 107.2 kB / 419.1 MB, free: 7.98 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005504/0.6618, allocations: 180.1 kB / 419.2 MB, free: 7.805 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 7.895e-06/0.6618, allocations: 0 / 419.2 MB, free: 7.805 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002159/0.662, allocations: 83.7 kB / 419.3 MB, free: 7.723 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005342/0.6626, allocations: 23.98 kB / 419.3 MB, free: 7.699 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001044/0.6636, allocations: 356.7 kB / 419.7 MB, free: 7.316 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005527/0.6642, allocations: 0.7326 MB / 420.4 MB, free: 6.555 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.191e-05/0.6643, allocations: 23.38 kB / 420.4 MB, free: 6.531 MB / 334.1 MB Notification: Performance of SimCode: time 4.51e-07/0.6643, allocations: 0 / 420.4 MB, free: 6.531 MB / 334.1 MB Notification: Performance of Templates: time 0.007792/0.6721, allocations: 2.312 MB / 422.8 MB, free: 4.219 MB / 334.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