Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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.0.0_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.001475/0.001475, allocations: 112.3 kB / 17.68 MB, free: 5.473 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.001586/0.001586, allocations: 190.9 kB / 18.62 MB, free: 4.543 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.463/1.463, allocations: 222.9 MB / 242.3 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001155/0.001156, allocations: 51.23 kB / 302 MB, free: 5.195 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1276/0.1287, allocations: 49.45 MB / 351.5 MB, free: 3.73 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002977/0.1317, allocations: 1.664 MB / 353.2 MB, free: 2.047 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006605/0.1324, allocations: 287.1 kB / 353.4 MB, free: 1.766 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.007e-05/0.1325, allocations: 4 kB / 353.4 MB, free: 1.762 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001256/0.1327, allocations: 23.67 kB / 353.5 MB, free: 1.738 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 4.355e-05/0.1327, allocations: 23.81 kB / 353.5 MB, free: 1.715 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003922/0.1331, allocations: 115.8 kB / 353.6 MB, free: 1.602 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002974/0.1334, allocations: 275.4 kB / 353.9 MB, free: 1.332 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000314/0.1338, allocations: 194.9 kB / 354.1 MB, free: 1.137 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.742e-05/0.1339, allocations: 83.72 kB / 354.1 MB, free: 1.055 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000146/0.134, allocations: 107.5 kB / 354.2 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.985e-05/0.1341, allocations: 24 kB / 354.3 MB, free: 0.9258 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.167e-05/0.1341, allocations: 31.94 kB / 354.3 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.56e-05/0.1342, allocations: 63.81 kB / 354.4 MB, free: 0.832 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.989e-05/0.1343, allocations: 99.53 kB / 354.5 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000275/0.1346, allocations: 255.1 kB / 354.7 MB, free: 496 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.1346, allocations: 0 / 354.7 MB, free: 496 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.1346, allocations: 0 / 354.7 MB, free: 496 kB / 286.1 MB Notification: Performance of Transformations before backend: time 1.112e-05/0.1346, allocations: 0 / 354.7 MB, free: 496 kB / 286.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.0006701/0.1353, allocations: 0.4946 MB / 355.2 MB, free: 15.93 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.586e-05/0.1354, allocations: 11.89 kB / 355.2 MB, free: 15.92 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.976e-05/0.1354, allocations: 24.66 kB / 355.2 MB, free: 15.9 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003118/0.1357, allocations: 232 kB / 355.5 MB, free: 15.63 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.396e-05/0.1358, allocations: 24.94 kB / 355.5 MB, free: 15.61 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.898e-05/0.1358, allocations: 32.38 kB / 355.5 MB, free: 15.58 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004073/0.1362, allocations: 266.6 kB / 355.8 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.411e-05/0.1363, allocations: 8.109 kB / 355.8 MB, free: 15.29 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.818e-05/0.1363, allocations: 15.94 kB / 355.8 MB, free: 15.28 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.008e-05/0.1363, allocations: 8 kB / 355.8 MB, free: 15.27 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002779/0.1366, allocations: 165.6 kB / 356 MB, free: 15.11 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001023/0.1376, allocations: 0.9632 MB / 356.9 MB, free: 14.08 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002654/0.1379, allocations: 177.4 kB / 357.1 MB, free: 13.89 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001544/0.1381, allocations: 85.56 kB / 357.2 MB, free: 13.8 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.44e-05/0.1381, allocations: 4 kB / 357.2 MB, free: 13.79 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002017/0.1383, allocations: 141 kB / 357.3 MB, free: 13.64 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 5.49e-06/0.1383, allocations: 0 / 357.3 MB, free: 13.64 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.000454/0.1388, allocations: 224.8 kB / 357.6 MB, free: 13.41 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.137e-05/0.1389, allocations: 89.05 kB / 357.6 MB, free: 13.31 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001238/0.139, allocations: 153.6 kB / 357.8 MB, free: 13.15 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.014e-05/0.139, allocations: 37.7 kB / 357.8 MB, free: 13.11 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001035/0.1391, allocations: 140.7 kB / 358 MB, free: 12.96 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.412e-05/0.1392, allocations: 67.19 kB / 358 MB, free: 12.9 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001076/0.1393, allocations: 81.61 kB / 358.1 MB, free: 12.81 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001511/0.1395, allocations: 326.8 kB / 358.4 MB, free: 12.48 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001191/0.1396, allocations: 63.97 kB / 358.5 MB, free: 12.42 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001664/0.1398, allocations: 148.3 kB / 358.6 MB, free: 12.25 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002463/0.14, allocations: 193 kB / 358.8 MB, free: 12.03 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.721e-06/0.1401, allocations: 4 kB / 358.8 MB, free: 12.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003621/0.1404, allocations: 253.2 kB / 359.1 MB, free: 11.77 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.464e-05/0.1404, allocations: 4.281 kB / 359.1 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.1405, allocations: 8 kB / 359.1 MB, free: 11.76 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.591e-05/0.1405, allocations: 4 kB / 359.1 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001312/0.1406, allocations: 35.92 kB / 359.1 MB, free: 11.72 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.212e-05/0.1406, allocations: 7.984 kB / 359.1 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.466e-05/0.1407, allocations: 31.69 kB / 359.2 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.581e-05/0.1408, allocations: 12 kB / 359.2 MB, free: 11.67 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.0001331/0.1409, allocations: 165.6 kB / 359.3 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.276e-05/0.1409, allocations: 11.81 kB / 359.3 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000312/0.1413, allocations: 194.4 kB / 359.5 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.097e-06/0.1413, allocations: 4 kB / 359.5 MB, free: 11.28 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.1413, allocations: 0 / 359.5 MB, free: 11.28 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.715e-06/0.1413, allocations: 3.984 kB / 359.5 MB, free: 11.28 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006584/0.1419, allocations: 0.5945 MB / 360.1 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.142, allocations: 0 / 360.1 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.202e-05/0.142, allocations: 23.92 kB / 360.2 MB, free: 10.6 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.315e-06/0.142, allocations: 0 / 360.2 MB, free: 10.6 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.716e-05/0.1421, allocations: 11.94 kB / 360.2 MB, free: 10.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.288e-06/0.1421, allocations: 0 / 360.2 MB, free: 10.59 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.1421, allocations: 3.938 kB / 360.2 MB, free: 10.58 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002956/0.1424, allocations: 284.6 kB / 360.5 MB, free: 10.29 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.897e-05/0.1424, allocations: 92.86 kB / 360.5 MB, free: 10.18 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.865e-05/0.1425, allocations: 11.94 kB / 360.6 MB, free: 10.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.637e-05/0.1426, allocations: 15.92 kB / 360.6 MB, free: 10.15 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.936e-05/0.1427, allocations: 19.97 kB / 360.6 MB, free: 10.13 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.522e-05/0.1427, allocations: 12 kB / 360.6 MB, free: 10.12 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.507e-05/0.1427, allocations: 98.5 kB / 360.7 MB, free: 10.02 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1427, allocations: 0 / 360.7 MB, free: 10.02 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002926/0.143, allocations: 51.84 kB / 360.8 MB, free: 9.973 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: 20 (transition2.t_start,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: 3 (initialStep.newActive,step.newActive,transition2.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 21 * 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.0001438/0.1432, allocations: 115.2 kB / 360.9 MB, free: 9.852 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003391/0.1435, allocations: 188.2 kB / 361 MB, free: 9.668 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.1435, allocations: 0 / 361 MB, free: 9.668 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001366/0.1437, allocations: 87.84 kB / 361.1 MB, free: 9.582 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002785/0.144, allocations: 31.92 kB / 361.2 MB, free: 9.551 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005846/0.1446, allocations: 348.6 kB / 361.5 MB, free: 9.184 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002928/0.1449, allocations: 0.7367 MB / 362.2 MB, free: 8.418 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.456e-05/0.145, allocations: 25.92 kB / 362.3 MB, free: 8.391 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.375e-05/0.145, allocations: 27.44 kB / 362.3 MB, free: 8.363 MB / 302.1 MB Notification: Performance of SimCode: time 3.11e-07/0.145, allocations: 0 / 362.3 MB, free: 8.363 MB / 302.1 MB Notification: Performance of Templates: time 0.004811/0.1498, allocations: 1.877 MB / 364.2 MB, free: 6.492 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches