Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.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: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001433/0.001432, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001345/0.001345, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.401/1.401, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001291/0.001291, allocations: 60.7 kB / 307 MB, free: 0.5625 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1198/0.1211, allocations: 50.52 MB / 357.6 MB, free: 14.04 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003258/0.1244, allocations: 1.715 MB / 359.3 MB, free: 12.31 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007739/0.1252, allocations: 291.1 kB / 359.6 MB, free: 12.02 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001581/0.1254, allocations: 4 kB / 359.6 MB, free: 12.02 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001519/0.1256, allocations: 27.67 kB / 359.6 MB, free: 11.99 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 7.171e-05/0.1257, allocations: 23.8 kB / 359.6 MB, free: 11.97 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004397/0.1261, allocations: 115.8 kB / 359.7 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000366/0.1265, allocations: 267.5 kB / 360 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003739/0.1269, allocations: 185.5 kB / 360.2 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001254/0.127, allocations: 87.7 kB / 360.2 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001548/0.1272, allocations: 99.53 kB / 360.3 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.189e-05/0.1273, allocations: 24 kB / 360.4 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.507e-05/0.1273, allocations: 31.94 kB / 360.4 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.25e-05/0.1274, allocations: 55.83 kB / 360.5 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001216/0.1275, allocations: 103.5 kB / 360.6 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003049/0.1279, allocations: 243.5 kB / 360.8 MB, free: 10.78 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.1279, allocations: 0 / 360.8 MB, free: 10.78 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.285e-06/0.1279, allocations: 0 / 360.8 MB, free: 10.78 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.105e-06/0.1279, allocations: 0 / 360.8 MB, free: 10.78 MB / 302.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.0007325/0.1286, allocations: 486.7 kB / 361.3 MB, free: 10.25 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.549e-05/0.1287, allocations: 15.97 kB / 361.3 MB, free: 10.23 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.101e-05/0.1288, allocations: 62.72 kB / 361.3 MB, free: 10.16 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002255/0.129, allocations: 32.64 kB / 361.4 MB, free: 10.13 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002683/0.1293, allocations: 235.9 kB / 361.6 MB, free: 9.859 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.032e-05/0.1293, allocations: 24.94 kB / 361.6 MB, free: 9.836 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.455e-05/0.1294, allocations: 28.38 kB / 361.7 MB, free: 9.809 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004511/0.1298, allocations: 270.5 kB / 361.9 MB, free: 9.523 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.281e-05/0.1299, allocations: 3.938 kB / 361.9 MB, free: 9.52 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.596e-05/0.1299, allocations: 8 kB / 361.9 MB, free: 9.512 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.036e-05/0.1299, allocations: 8 kB / 361.9 MB, free: 9.504 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003027/0.1302, allocations: 169.6 kB / 362.1 MB, free: 9.336 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001191/0.1314, allocations: 0.9595 MB / 363.1 MB, free: 8.309 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000295/0.1317, allocations: 184 kB / 363.2 MB, free: 8.113 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001178/0.1319, allocations: 77.27 kB / 363.3 MB, free: 8.035 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.171e-05/0.1319, allocations: 4 kB / 363.3 MB, free: 8.031 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002795/0.1322, allocations: 140.9 kB / 363.5 MB, free: 7.875 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.643e-06/0.1322, allocations: 0 / 363.5 MB, free: 7.875 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004631/0.1327, allocations: 228.5 kB / 363.7 MB, free: 7.648 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.405e-05/0.1327, allocations: 89.03 kB / 363.8 MB, free: 7.543 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001413/0.1329, allocations: 149.6 kB / 363.9 MB, free: 7.387 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.092e-05/0.1329, allocations: 33.7 kB / 364 MB, free: 7.348 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.543e-05/0.133, allocations: 140.5 kB / 364.1 MB, free: 7.207 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.348e-05/0.1331, allocations: 67.17 kB / 364.2 MB, free: 7.141 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.769e-05/0.1332, allocations: 73.69 kB / 364.2 MB, free: 7.062 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001433/0.1333, allocations: 334.9 kB / 364.6 MB, free: 6.727 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001296/0.1335, allocations: 63.75 kB / 364.6 MB, free: 6.664 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001539/0.1336, allocations: 136.5 kB / 364.8 MB, free: 6.5 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000252/0.1339, allocations: 192.4 kB / 364.9 MB, free: 6.281 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/0.1339, allocations: 4 kB / 364.9 MB, free: 6.277 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003758/0.1343, allocations: 261.1 kB / 365.2 MB, free: 6.016 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.793e-05/0.1343, allocations: 10.95 kB / 365.2 MB, free: 6.008 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.257e-06/0.1343, allocations: 4 kB / 365.2 MB, free: 6.004 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.625e-05/0.1344, allocations: 4 kB / 365.2 MB, free: 6 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001412/0.1345, allocations: 31.92 kB / 365.2 MB, free: 5.969 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.073e-05/0.1345, allocations: 4.281 kB / 365.3 MB, free: 5.965 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001088/0.1346, allocations: 27.75 kB / 365.3 MB, free: 5.938 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.072e-05/0.1347, allocations: 16 kB / 365.3 MB, free: 5.922 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.000182/0.1348, allocations: 170.5 kB / 365.5 MB, free: 5.746 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.084e-05/0.1349, allocations: 15.81 kB / 365.5 MB, free: 5.73 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.443e-05/0.1349, allocations: 20.84 kB / 365.5 MB, free: 5.707 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.135, allocations: 0 / 365.5 MB, free: 5.707 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.276e-06/0.135, allocations: 3.984 kB / 365.5 MB, free: 5.703 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.143e-06/0.135, allocations: 7.984 kB / 365.5 MB, free: 5.695 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007494/0.1357, allocations: 0.5674 MB / 366.1 MB, free: 5.066 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.1358, allocations: 4 kB / 366.1 MB, free: 5.062 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.052e-05/0.1358, allocations: 11.98 kB / 366.1 MB, free: 5.051 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.233e-06/0.1358, allocations: 7.938 kB / 366.1 MB, free: 5.043 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.615e-05/0.1359, allocations: 4 kB / 366.1 MB, free: 5.039 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.891e-06/0.1359, allocations: 4 kB / 366.1 MB, free: 5.035 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.1359, allocations: 3.938 kB / 366.1 MB, free: 5.031 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003329/0.1362, allocations: 280.1 kB / 366.4 MB, free: 4.742 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.3e-05/0.1363, allocations: 85.02 kB / 366.5 MB, free: 4.641 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.107e-05/0.1363, allocations: 7.938 kB / 366.5 MB, free: 4.633 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.234e-05/0.1364, allocations: 8 kB / 366.5 MB, free: 4.625 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.433e-05/0.1365, allocations: 19.97 kB / 366.5 MB, free: 4.605 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.367e-05/0.1365, allocations: 8 kB / 366.5 MB, free: 4.598 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.739e-05/0.1366, allocations: 106.9 kB / 366.6 MB, free: 4.496 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1366, allocations: 0 / 366.6 MB, free: 4.496 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003186/0.137, allocations: 55.73 kB / 366.7 MB, free: 4.441 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: 18 (transition2.t_start,step.localActive,transition1.enableFire,step.active,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.0006448/0.1376, allocations: 0.8106 MB / 367.5 MB, free: 3.602 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003922/0.138, allocations: 195.9 kB / 367.7 MB, free: 3.41 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.138, allocations: 0 / 367.7 MB, free: 3.41 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001388/0.1382, allocations: 85.27 kB / 367.8 MB, free: 3.328 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000301/0.1385, allocations: 20 kB / 367.8 MB, free: 3.309 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002266/0.1408, allocations: 2.046 MB / 369.8 MB, free: 1.117 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002914/0.1411, allocations: 0.7326 MB / 370.6 MB, free: 364 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.731e-05/0.1412, allocations: 26.12 kB / 370.6 MB, free: 340 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001011/0.1413, allocations: 59.42 kB / 370.6 MB, free: 280 kB / 302.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1413, allocations: 3.938 kB / 370.6 MB, free: 276 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1897/0.331, allocations: 3.395 MB / 374 MB, free: 19.59 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.772/8.103, allocations: 5.406 kB / 374 MB, free: 19.59 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3_res.csv --start-time 0 --stop-time 5.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0022 Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant3.fmu > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3_res.csv","/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_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches