Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.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_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_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_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001504/0.001504, allocations: 109.4 kB / 17.73 MB, free: 5.328 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.001604/0.001604, allocations: 192.2 kB / 18.67 MB, free: 4.395 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.542/1.542, allocations: 205.1 MB / 224.5 MB, free: 12.21 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.001438/0.001438, allocations: 51.94 kB / 328.5 MB, free: 3.316 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1194/0.1209, allocations: 46.62 MB / 375.1 MB, free: 4.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003472/0.1244, allocations: 1.663 MB / 376.8 MB, free: 2.91 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008623/0.1253, allocations: 256.1 kB / 377 MB, free: 2.66 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001772/0.1255, allocations: 7.938 kB / 377 MB, free: 2.652 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001921/0.1258, allocations: 27.67 kB / 377.1 MB, free: 2.625 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.836e-05/0.1259, allocations: 19.8 kB / 377.1 MB, free: 2.605 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005565/0.1264, allocations: 115.8 kB / 377.2 MB, free: 2.492 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000447/0.1269, allocations: 271.5 kB / 377.5 MB, free: 2.227 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004223/0.1273, allocations: 190.9 kB / 377.6 MB, free: 2.035 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000137/0.1275, allocations: 87.75 kB / 377.7 MB, free: 1.949 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001788/0.1277, allocations: 95.55 kB / 377.8 MB, free: 1.855 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.538e-05/0.1277, allocations: 24 kB / 377.8 MB, free: 1.832 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001013/0.1278, allocations: 35.92 kB / 377.9 MB, free: 1.797 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.642e-05/0.1279, allocations: 59.83 kB / 377.9 MB, free: 1.738 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001246/0.128, allocations: 103.5 kB / 378 MB, free: 1.637 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003727/0.1284, allocations: 255 kB / 378.3 MB, free: 1.387 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.144e-06/0.1284, allocations: 0 / 378.3 MB, free: 1.387 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.1284, allocations: 0 / 378.3 MB, free: 1.387 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.265e-05/0.1285, allocations: 4 kB / 378.3 MB, free: 1.383 MB / 318.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.0008965/0.1294, allocations: 497.8 kB / 378.8 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.383e-05/0.1294, allocations: 15.89 kB / 378.8 MB, free: 0.832 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.944e-05/0.1295, allocations: 28.69 kB / 378.8 MB, free: 0.8047 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003681/0.1299, allocations: 239.9 kB / 379.1 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.5e-05/0.13, allocations: 20.94 kB / 379.1 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.931e-05/0.13, allocations: 28.38 kB / 379.1 MB, free: 496 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004863/0.1305, allocations: 270.6 kB / 379.4 MB, free: 208 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.479e-05/0.1305, allocations: 4.125 kB / 379.4 MB, free: 204 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.922e-05/0.1306, allocations: 11.94 kB / 379.4 MB, free: 192 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.518e-05/0.1306, allocations: 8 kB / 379.4 MB, free: 184 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003236/0.1309, allocations: 165.6 kB / 379.6 MB, free: 16 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2891/0.4201, allocations: 0.9603 MB / 380.5 MB, free: 12.49 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003723/0.4205, allocations: 153.4 kB / 380.7 MB, free: 12.47 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001435/0.4207, allocations: 74.53 kB / 380.7 MB, free: 12.46 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.425e-05/0.4207, allocations: 6.594 kB / 380.7 MB, free: 12.46 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002299/0.4209, allocations: 122.4 kB / 380.9 MB, free: 12.4 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 3.296e-06/0.421, allocations: 0 / 380.9 MB, free: 12.4 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0005593/0.4215, allocations: 211.9 kB / 381.1 MB, free: 12.36 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.346e-05/0.4216, allocations: 58.2 kB / 381.1 MB, free: 12.3 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002001/0.4218, allocations: 157.1 kB / 381.3 MB, free: 12.19 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.798e-05/0.4219, allocations: 37.28 kB / 381.3 MB, free: 12.16 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000117/0.422, allocations: 142.9 kB / 381.5 MB, free: 12.05 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.674e-05/0.4221, allocations: 59.69 kB / 381.5 MB, free: 12.01 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001613/0.4222, allocations: 80.98 kB / 381.6 MB, free: 11.99 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.688e-05/0.4223, allocations: 326 kB / 381.9 MB, free: 11.68 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001428/0.4225, allocations: 63.39 kB / 382 MB, free: 11.68 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000208/0.4227, allocations: 142.4 kB / 382.1 MB, free: 11.6 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003136/0.423, allocations: 185.6 kB / 382.3 MB, free: 11.52 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.791e-06/0.423, allocations: 5.312 kB / 382.3 MB, free: 11.51 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005546/0.4236, allocations: 254.5 kB / 382.6 MB, free: 11.43 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.737e-05/0.4236, allocations: 6.562 kB / 382.6 MB, free: 11.43 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.225e-05/0.4237, allocations: 3.047 kB / 382.6 MB, free: 11.43 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.102e-05/0.4237, allocations: 5.156 kB / 382.6 MB, free: 11.43 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001717/0.4239, allocations: 34.5 kB / 382.6 MB, free: 11.43 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.243e-05/0.4239, allocations: 10.16 kB / 382.6 MB, free: 11.43 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001321/0.424, allocations: 27.39 kB / 382.6 MB, free: 11.41 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.217e-05/0.4241, allocations: 15.58 kB / 382.7 MB, free: 11.41 MB / 318.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: 30 ($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,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 (40): * Single equations (assignments): 40 * 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.0001629/0.4242, allocations: 159.4 kB / 382.8 MB, free: 11.26 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.396e-05/0.4243, allocations: 14.19 kB / 382.8 MB, free: 11.25 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004708/0.4248, allocations: 199 kB / 383 MB, free: 11.16 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.486e-06/0.4248, allocations: 2.781 kB / 383 MB, free: 11.16 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.747e-06/0.4248, allocations: 0.5 kB / 383 MB, free: 11.16 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/0.4248, allocations: 5.812 kB / 383 MB, free: 11.16 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000809/0.4256, allocations: 0.5858 MB / 383.6 MB, free: 10.72 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.4256, allocations: 1.094 kB / 383.6 MB, free: 10.72 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.08e-05/0.4257, allocations: 18.25 kB / 383.6 MB, free: 10.71 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-05/0.4258, allocations: 1.125 kB / 383.6 MB, free: 10.71 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.944e-05/0.4258, allocations: 6.031 kB / 383.6 MB, free: 10.71 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.931e-06/0.4258, allocations: 7.875 kB / 383.6 MB, free: 10.71 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.265e-06/0.4258, allocations: 7.797 kB / 383.7 MB, free: 10.71 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003105/0.4261, allocations: 267.5 kB / 383.9 MB, free: 10.53 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.249e-05/0.4262, allocations: 90.72 kB / 384 MB, free: 10.43 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.745e-05/0.4262, allocations: 5.922 kB / 384 MB, free: 10.43 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.358e-05/0.4263, allocations: 13.52 kB / 384 MB, free: 10.42 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000106/0.4264, allocations: 20.23 kB / 384 MB, free: 10.41 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.762e-05/0.4264, allocations: 6.359 kB / 384 MB, free: 10.41 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.498e-05/0.4265, allocations: 104.9 kB / 384.1 MB, free: 10.33 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.4265, allocations: 4 kB / 384.2 MB, free: 10.32 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003778/0.4269, allocations: 51.88 kB / 384.2 MB, free: 10.31 MB / 318.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 (step.localActive,step.active,transition1.enableFire,initialStep.active,$cse1,$cse2,$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: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * 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.0001994/0.4271, allocations: 114 kB / 384.3 MB, free: 10.21 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004714/0.4276, allocations: 185.8 kB / 384.5 MB, free: 10.15 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.849e-06/0.4276, allocations: 3.641 kB / 384.5 MB, free: 10.15 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001641/0.4278, allocations: 85.92 kB / 384.6 MB, free: 10.12 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003544/0.4281, allocations: 27.75 kB / 384.6 MB, free: 10.11 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008253/0.429, allocations: 336.1 kB / 384.9 MB, free: 9.883 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000293/0.4293, allocations: 0.7372 MB / 385.7 MB, free: 9.184 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000116/0.4294, allocations: 29.42 kB / 385.7 MB, free: 9.18 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.098e-05/0.4295, allocations: 26.52 kB / 385.7 MB, free: 9.168 MB / 318.1 MB Notification: Performance of SimCode: time 6.21e-07/0.4295, allocations: 0 / 385.7 MB, free: 9.168 MB / 318.1 MB Notification: Performance of Templates: time 0.007321/0.4368, allocations: 1.892 MB / 387.6 MB, free: 9.027 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches