Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.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: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001759/0.00176, allocations: 110.6 kB / 16.62 MB, free: 6.961 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.002016/0.002017, allocations: 190 kB / 17.54 MB, free: 6.066 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.498/1.498, allocations: 222.9 MB / 241.2 MB, free: 13.75 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001031/0.001031, allocations: 46.95 kB / 300.2 MB, free: 5.906 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1225/0.1236, allocations: 49.44 MB / 349.7 MB, free: 4.457 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.004024/0.1277, allocations: 1.78 MB / 351.5 MB, free: 2.656 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007733/0.1285, allocations: 303 kB / 351.8 MB, free: 2.359 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001425/0.1286, allocations: 4 kB / 351.8 MB, free: 2.355 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001618/0.1288, allocations: 15.86 kB / 351.8 MB, free: 2.34 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 6.582e-05/0.1289, allocations: 11.88 kB / 351.8 MB, free: 2.328 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004393/0.1293, allocations: 107.9 kB / 351.9 MB, free: 2.223 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003192/0.1297, allocations: 271.5 kB / 352.2 MB, free: 1.957 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003411/0.13, allocations: 189.5 kB / 352.3 MB, free: 1.77 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.681e-05/0.1301, allocations: 83.72 kB / 352.4 MB, free: 1.688 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001304/0.1303, allocations: 107.5 kB / 352.5 MB, free: 1.582 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.494e-05/0.1303, allocations: 24 kB / 352.5 MB, free: 1.559 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.505e-05/0.1304, allocations: 32 kB / 352.6 MB, free: 1.527 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.044e-05/0.1305, allocations: 59.81 kB / 352.6 MB, free: 1.469 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001046/0.1306, allocations: 95.53 kB / 352.7 MB, free: 1.375 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002933/0.1309, allocations: 235.5 kB / 353 MB, free: 1.145 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.1309, allocations: 4 kB / 353 MB, free: 1.141 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.1309, allocations: 0 / 353 MB, free: 1.141 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.221e-05/0.1309, allocations: 0 / 353 MB, free: 1.141 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.0007501/0.1317, allocations: 0.4947 MB / 353.5 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.305e-05/0.1318, allocations: 8.031 kB / 353.5 MB, free: 0.582 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.08e-05/0.1318, allocations: 58.73 kB / 353.5 MB, free: 0.5156 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.431e-05/0.1319, allocations: 28.64 kB / 353.6 MB, free: 500 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002681/0.1322, allocations: 228 kB / 353.8 MB, free: 232 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.704e-05/0.1322, allocations: 20.94 kB / 353.8 MB, free: 212 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.707e-05/0.1323, allocations: 36.36 kB / 353.8 MB, free: 176 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004748/0.1328, allocations: 270.5 kB / 354.1 MB, free: 15.89 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.442e-05/0.1328, allocations: 3.938 kB / 354.1 MB, free: 15.89 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.801e-05/0.1328, allocations: 15.98 kB / 354.1 MB, free: 15.87 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.678e-06/0.1328, allocations: 8 kB / 354.1 MB, free: 15.86 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003043/0.1331, allocations: 165.6 kB / 354.3 MB, free: 15.7 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001184/0.1343, allocations: 0.9672 MB / 355.3 MB, free: 14.67 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002908/0.1346, allocations: 173.4 kB / 355.4 MB, free: 14.48 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001214/0.1348, allocations: 89.69 kB / 355.5 MB, free: 14.39 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2e-05/0.1348, allocations: 3.984 kB / 355.5 MB, free: 14.38 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003081/0.1351, allocations: 140.7 kB / 355.7 MB, free: 14.23 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.724e-06/0.1351, allocations: 0 / 355.7 MB, free: 14.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004854/0.1356, allocations: 229.2 kB / 355.9 MB, free: 14 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.383e-05/0.1357, allocations: 93.16 kB / 356 MB, free: 13.89 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001415/0.1358, allocations: 155.9 kB / 356.1 MB, free: 13.73 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.774e-05/0.1359, allocations: 37.7 kB / 356.2 MB, free: 13.69 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001039/0.136, allocations: 140.5 kB / 356.3 MB, free: 13.55 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.512e-05/0.1361, allocations: 63.19 kB / 356.4 MB, free: 13.48 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.625e-05/0.1362, allocations: 77.69 kB / 356.4 MB, free: 13.4 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001666/0.1363, allocations: 326.8 kB / 356.7 MB, free: 13.07 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001189/0.1365, allocations: 67.95 kB / 356.8 MB, free: 13.01 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001659/0.1366, allocations: 136.5 kB / 356.9 MB, free: 12.84 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002699/0.1369, allocations: 193 kB / 357.1 MB, free: 12.62 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.043e-06/0.1369, allocations: 0 / 357.1 MB, free: 12.62 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003891/0.1373, allocations: 257.1 kB / 357.4 MB, free: 12.37 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.097e-05/0.1373, allocations: 7.984 kB / 357.4 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.318e-06/0.1374, allocations: 4 kB / 357.4 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.632e-05/0.1374, allocations: 4 kB / 357.4 MB, free: 12.35 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001435/0.1375, allocations: 35.92 kB / 357.4 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.578e-06/0.1375, allocations: 4 kB / 357.4 MB, free: 12.31 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001033/0.1377, allocations: 32.03 kB / 357.5 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.947e-05/0.1377, allocations: 19.92 kB / 357.5 MB, free: 12.26 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.0001645/0.1379, allocations: 161.6 kB / 357.7 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.572e-05/0.1379, allocations: 15.81 kB / 357.7 MB, free: 12.08 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003403/0.1382, allocations: 190.4 kB / 357.9 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.046e-06/0.1383, allocations: 0 / 357.9 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.1383, allocations: 4 kB / 357.9 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.96e-06/0.1383, allocations: 0 / 357.9 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007342/0.139, allocations: 0.5947 MB / 358.5 MB, free: 11.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.139, allocations: 0 / 358.5 MB, free: 11.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.398e-05/0.1391, allocations: 19.92 kB / 358.5 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.629e-06/0.1391, allocations: 3.938 kB / 358.5 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.762e-05/0.1391, allocations: 8 kB / 358.5 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.1392, allocations: 0 / 358.5 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.532e-06/0.1392, allocations: 0 / 358.5 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003048/0.1395, allocations: 292.5 kB / 358.8 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.649e-05/0.1395, allocations: 100.8 kB / 358.9 MB, free: 10.77 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.73e-05/0.1396, allocations: 8 kB / 358.9 MB, free: 10.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.015e-05/0.1397, allocations: 7.984 kB / 358.9 MB, free: 10.76 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.958e-05/0.1397, allocations: 19.97 kB / 358.9 MB, free: 10.74 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.825e-05/0.1398, allocations: 12 kB / 358.9 MB, free: 10.73 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.634e-05/0.1398, allocations: 95.27 kB / 359 MB, free: 10.63 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1398, allocations: 4 kB / 359 MB, free: 10.63 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003439/0.1402, allocations: 47.84 kB / 359.1 MB, free: 10.58 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.active,transition1.enableFire,step.localActive,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 (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.0006875/0.1409, allocations: 0.8301 MB / 359.9 MB, free: 9.723 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003506/0.1412, allocations: 203.7 kB / 360.1 MB, free: 9.523 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.1413, allocations: 4 kB / 360.1 MB, free: 9.52 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001262/0.1414, allocations: 80.34 kB / 360.2 MB, free: 9.441 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003196/0.1417, allocations: 27.94 kB / 360.2 MB, free: 9.414 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00211/0.1438, allocations: 2.137 MB / 362.3 MB, free: 7.133 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003027/0.1441, allocations: 0.7402 MB / 363.1 MB, free: 6.367 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.537e-05/0.1442, allocations: 26.12 kB / 363.1 MB, free: 6.34 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001218/0.1444, allocations: 59.42 kB / 363.2 MB, free: 6.281 MB / 302.1 MB Notification: Performance of SimCode: time 5.81e-07/0.1444, allocations: 7.938 kB / 363.2 MB, free: 6.273 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01505/0.1594, allocations: 3.526 MB / 366.7 MB, free: 2.867 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001977/0.1597, allocations: 199 kB / 366.9 MB, free: 2.613 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.134/2.294, allocations: 4 kB / 366.9 MB, free: 2.609 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant3_fmu --startTime=0 --stopTime=5.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant3.fmu > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches