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.0009444/0.0009446, allocations: 84 kB / 16.31 MB, free: 6.449 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.0009036/0.0009038, allocations: 183.3 kB / 17.21 MB, free: 6.316 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.641/1.641, allocations: 223.3 MB / 241.2 MB, free: 5.438 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002677/0.0002678, allocations: 6.25 kB / 300.8 MB, free: 6.016 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1206/0.1209, allocations: 50.43 MB / 351.2 MB, free: 11.74 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002177/0.1231, allocations: 1.372 MB / 352.6 MB, free: 10.36 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008079/0.1239, allocations: 303.1 kB / 352.9 MB, free: 10.06 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001833/0.1242, allocations: 4 kB / 352.9 MB, free: 10.05 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001443/0.1243, allocations: 19.8 kB / 352.9 MB, free: 10.04 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 5.928e-05/0.1244, allocations: 11.92 kB / 352.9 MB, free: 10.02 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004745/0.1249, allocations: 95.83 kB / 353 MB, free: 9.93 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000397/0.1253, allocations: 235.5 kB / 353.3 MB, free: 9.699 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003441/0.1256, allocations: 161.8 kB / 353.4 MB, free: 9.531 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001099/0.1257, allocations: 67.75 kB / 353.5 MB, free: 9.465 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001312/0.1259, allocations: 75.62 kB / 353.6 MB, free: 9.391 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.113e-05/0.1259, allocations: 8 kB / 353.6 MB, free: 9.383 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.593e-05/0.126, allocations: 23.94 kB / 353.6 MB, free: 9.359 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.937e-05/0.1261, allocations: 43.81 kB / 353.6 MB, free: 9.316 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.539e-05/0.1261, allocations: 61.58 kB / 353.7 MB, free: 9.25 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000203/0.1263, allocations: 155.6 kB / 353.8 MB, free: 9.098 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.119e-06/0.1264, allocations: 0 / 353.8 MB, free: 9.098 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.1264, allocations: 4 kB / 353.8 MB, free: 9.094 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.873e-06/0.1264, allocations: 0 / 353.8 MB, free: 9.094 MB / 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.0006986/0.1271, allocations: 450.5 kB / 354.3 MB, free: 8.605 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.613e-05/0.1271, allocations: 8.031 kB / 354.3 MB, free: 8.598 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.579e-05/0.1272, allocations: 23.77 kB / 354.3 MB, free: 8.574 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002651/0.1275, allocations: 234.7 kB / 354.5 MB, free: 8.305 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.054e-05/0.1275, allocations: 20.56 kB / 354.6 MB, free: 8.285 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.303e-05/0.1276, allocations: 35.94 kB / 354.6 MB, free: 8.25 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004586/0.1281, allocations: 274 kB / 354.9 MB, free: 7.965 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.232e-05/0.1281, allocations: 0 / 354.9 MB, free: 7.965 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.531e-05/0.1281, allocations: 8 kB / 354.9 MB, free: 7.957 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.261e-05/0.1281, allocations: 11.95 kB / 354.9 MB, free: 7.945 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003027/0.1284, allocations: 165.6 kB / 355 MB, free: 7.785 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001229/0.1297, allocations: 0.979 MB / 356 MB, free: 6.738 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002882/0.13, allocations: 177.9 kB / 356.2 MB, free: 6.547 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001281/0.1301, allocations: 89.94 kB / 356.3 MB, free: 6.453 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.966e-05/0.1301, allocations: 192 / 356.3 MB, free: 6.453 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002489/0.1304, allocations: 133.2 kB / 356.4 MB, free: 6.305 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.443e-06/0.1304, allocations: 0 / 356.4 MB, free: 6.305 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004427/0.1309, allocations: 228 kB / 356.6 MB, free: 6.078 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.654e-05/0.1309, allocations: 85.23 kB / 356.7 MB, free: 5.977 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001337/0.1311, allocations: 149.6 kB / 356.9 MB, free: 5.82 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.497e-05/0.1311, allocations: 45.69 kB / 356.9 MB, free: 5.77 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001037/0.1312, allocations: 136.5 kB / 357 MB, free: 5.633 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.534e-05/0.1313, allocations: 59.2 kB / 357.1 MB, free: 5.574 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.296e-05/0.1313, allocations: 4 kB / 357.1 MB, free: 5.57 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001337/0.1314, allocations: 334.8 kB / 357.4 MB, free: 5.234 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000115/0.1316, allocations: 63.91 kB / 357.5 MB, free: 5.168 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001543/0.1317, allocations: 136.5 kB / 357.6 MB, free: 5.004 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001409/0.1319, allocations: 76.52 kB / 357.7 MB, free: 4.93 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.1319, allocations: 0 / 357.7 MB, free: 4.93 MB / 286.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003863/0.1323, allocations: 253.2 kB / 358 MB, free: 4.676 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.055e-05/0.1323, allocations: 8 kB / 358 MB, free: 4.668 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.1323, allocations: 8.281 kB / 358 MB, free: 4.66 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.611e-05/0.1324, allocations: 8 kB / 358 MB, free: 4.652 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001412/0.1325, allocations: 31.92 kB / 358 MB, free: 4.621 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.302e-05/0.1325, allocations: 4 kB / 358 MB, free: 4.617 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001104/0.1326, allocations: 35.67 kB / 358 MB, free: 4.582 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.151e-05/0.1327, allocations: 12 kB / 358.1 MB, free: 4.57 MB / 286.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,$whenCondition2,$whenCondition1,initialStep.active,$PRE.initialStep.localActive,initialStep.localActive,$PRE.initialStep.newActive,initialStep.newActive,$PRE.initialStep.oldActive,initialStep.oldActive,transition1.enableFire,transition1.fire,$PRE.transition1.t_start,transition1.t_start,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,step.active,transition2.condition,transition2.enableFire,$PRE.timer.entryTime,timer.entryTime,stateGraphRoot.activeSteps,$PRE.transition2.t_start,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001513/0.1328, allocations: 162.4 kB / 358.2 MB, free: 4.402 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.783e-05/0.1329, allocations: 15.8 kB / 358.2 MB, free: 4.387 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003337/0.1332, allocations: 190.3 kB / 358.4 MB, free: 4.195 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.114e-06/0.1332, allocations: 4 kB / 358.4 MB, free: 4.191 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.1332, allocations: 0 / 358.4 MB, free: 4.191 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.762e-06/0.1332, allocations: 4 kB / 358.4 MB, free: 4.188 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007014/0.134, allocations: 0.5952 MB / 359 MB, free: 3.531 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.46e-06/0.134, allocations: 3.984 kB / 359 MB, free: 3.527 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.404e-05/0.1341, allocations: 23.94 kB / 359.1 MB, free: 3.504 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.13e-06/0.1341, allocations: 0 / 359.1 MB, free: 3.504 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.686e-05/0.1341, allocations: 8 kB / 359.1 MB, free: 3.496 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.589e-06/0.1341, allocations: 3.984 kB / 359.1 MB, free: 3.492 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.1341, allocations: 3.953 kB / 359.1 MB, free: 3.488 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003165/0.1344, allocations: 288.4 kB / 359.3 MB, free: 3.188 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.281e-05/0.1345, allocations: 85.02 kB / 359.4 MB, free: 3.086 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.751e-05/0.1345, allocations: 12 kB / 359.4 MB, free: 3.074 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.786e-05/0.1346, allocations: 15.92 kB / 359.5 MB, free: 3.059 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.037e-05/0.1347, allocations: 19.92 kB / 359.5 MB, free: 3.039 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.19e-05/0.1347, allocations: 16 kB / 359.5 MB, free: 3.023 MB / 286.1 MB Notification: Performance of sorting global known variables: time 6.676e-05/0.1348, allocations: 101.6 kB / 359.6 MB, free: 2.926 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1348, allocations: 0 / 359.6 MB, free: 2.926 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000326/0.1351, allocations: 51.84 kB / 359.6 MB, free: 2.875 MB / 286.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.active,step.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$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 (26): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001485/0.1353, allocations: 118.9 kB / 359.8 MB, free: 2.75 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003321/0.1356, allocations: 175.8 kB / 359.9 MB, free: 2.578 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.1356, allocations: 4 kB / 359.9 MB, free: 2.574 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001407/0.1358, allocations: 79.91 kB / 360 MB, free: 2.496 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002958/0.1361, allocations: 26.39 kB / 360 MB, free: 2.473 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006502/0.1367, allocations: 408.2 kB / 360.4 MB, free: 2.043 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000407/0.1372, allocations: 0.7367 MB / 361.2 MB, free: 1.281 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 8.481e-05/0.1373, allocations: 25.94 kB / 361.2 MB, free: 1.258 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.533e-05/0.1373, allocations: 23.44 kB / 361.2 MB, free: 1.234 MB / 286.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1373, allocations: 0 / 361.2 MB, free: 1.234 MB / 286.1 MB Notification: Performance of Templates: time 0.004897/0.1422, allocations: 1.67 MB / 362.9 MB, free: 15.57 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins/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