Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.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_Variant2,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001457/0.001457, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001861/0.001861, allocations: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.445/1.445, allocations: 227.4 MB / 246.8 MB, free: 10.56 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001337/0.001337, allocations: 64.5 kB / 307 MB, free: 0.5156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.1096, allocations: 50.53 MB / 357.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.00361/0.1133, allocations: 1.686 MB / 359.3 MB, free: 12.29 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007491/0.1141, allocations: 279.2 kB / 359.5 MB, free: 12.01 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001148/0.1142, allocations: 7.875 kB / 359.5 MB, free: 12 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001305/0.1144, allocations: 27.73 kB / 359.6 MB, free: 11.98 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 5.473e-05/0.1144, allocations: 23.75 kB / 359.6 MB, free: 11.95 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003936/0.1148, allocations: 115.8 kB / 359.7 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003302/0.1152, allocations: 271.5 kB / 360 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003163/0.1155, allocations: 186.9 kB / 360.1 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001122/0.1156, allocations: 91.7 kB / 360.2 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001427/0.1158, allocations: 103.5 kB / 360.3 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.101e-05/0.1158, allocations: 24 kB / 360.4 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.114e-05/0.1159, allocations: 31.92 kB / 360.4 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.994e-05/0.116, allocations: 59.83 kB / 360.4 MB, free: 11.08 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001102/0.1161, allocations: 99.53 kB / 360.5 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002822/0.1164, allocations: 251.4 kB / 360.8 MB, free: 10.74 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.1164, allocations: 0 / 360.8 MB, free: 10.74 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1164, allocations: 4 kB / 360.8 MB, free: 10.73 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.953e-06/0.1164, allocations: 0 / 360.8 MB, free: 10.73 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.0007105/0.1171, allocations: 494.6 kB / 361.3 MB, free: 10.2 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.846e-05/0.1172, allocations: 8.031 kB / 361.3 MB, free: 10.19 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.425e-05/0.1172, allocations: 54.73 kB / 361.3 MB, free: 10.12 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002151/0.1175, allocations: 32.64 kB / 361.4 MB, free: 10.09 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002483/0.1177, allocations: 236 kB / 361.6 MB, free: 9.824 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.514e-05/0.1178, allocations: 24.94 kB / 361.6 MB, free: 9.801 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.029e-05/0.1178, allocations: 28.38 kB / 361.7 MB, free: 9.773 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004336/0.1182, allocations: 266.6 kB / 361.9 MB, free: 9.492 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.284e-05/0.1183, allocations: 7.875 kB / 361.9 MB, free: 9.484 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.227e-05/0.1183, allocations: 8 kB / 361.9 MB, free: 9.477 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.604e-06/0.1183, allocations: 4 kB / 361.9 MB, free: 9.473 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002929/0.1186, allocations: 173.6 kB / 362.1 MB, free: 9.301 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001089/0.1197, allocations: 0.9672 MB / 363.1 MB, free: 8.266 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002745/0.12, allocations: 176.9 kB / 363.2 MB, free: 8.078 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001135/0.1201, allocations: 81.73 kB / 363.3 MB, free: 7.992 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.978e-05/0.1201, allocations: 4 kB / 363.3 MB, free: 7.988 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002466/0.1204, allocations: 132.3 kB / 363.5 MB, free: 7.844 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 3.767e-06/0.1204, allocations: 7.938 kB / 363.5 MB, free: 7.836 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004143/0.1208, allocations: 225.1 kB / 363.7 MB, free: 7.609 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.942e-05/0.1209, allocations: 85.05 kB / 363.8 MB, free: 7.508 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001337/0.121, allocations: 157.5 kB / 363.9 MB, free: 7.344 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.552e-05/0.1211, allocations: 41.69 kB / 364 MB, free: 7.297 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.418e-05/0.1212, allocations: 136.6 kB / 364.1 MB, free: 7.16 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.648e-05/0.1213, allocations: 55.2 kB / 364.1 MB, free: 7.105 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001012/0.1214, allocations: 85.58 kB / 364.2 MB, free: 7.016 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000117/0.1215, allocations: 334.9 kB / 364.6 MB, free: 6.68 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001211/0.1216, allocations: 67.75 kB / 364.6 MB, free: 6.613 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001529/0.1218, allocations: 132.5 kB / 364.8 MB, free: 6.453 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000248/0.122, allocations: 196.4 kB / 364.9 MB, free: 6.23 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.122, allocations: 0 / 364.9 MB, free: 6.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004011/0.1224, allocations: 257.2 kB / 365.2 MB, free: 5.973 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.349e-05/0.1225, allocations: 4 kB / 365.2 MB, free: 5.969 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.1225, allocations: 4 kB / 365.2 MB, free: 5.965 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.805e-05/0.1225, allocations: 4 kB / 365.2 MB, free: 5.961 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001398/0.1227, allocations: 32.2 kB / 365.2 MB, free: 5.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.032e-05/0.1227, allocations: 11.98 kB / 365.3 MB, free: 5.918 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.785e-05/0.1228, allocations: 27.78 kB / 365.3 MB, free: 5.891 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.713e-05/0.1228, allocations: 8 kB / 365.3 MB, free: 5.883 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.0001547/0.123, allocations: 174.7 kB / 365.5 MB, free: 5.703 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.376e-05/0.123, allocations: 11.81 kB / 365.5 MB, free: 5.691 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.879e-05/0.123, allocations: 20.84 kB / 365.5 MB, free: 5.668 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.987e-06/0.1231, allocations: 4 kB / 365.5 MB, free: 5.664 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/0.1231, allocations: 0 / 365.5 MB, free: 5.664 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.222e-06/0.1231, allocations: 7.984 kB / 365.5 MB, free: 5.656 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007019/0.1238, allocations: 0.5781 MB / 366.1 MB, free: 5.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.1238, allocations: 0 / 366.1 MB, free: 5.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.961e-05/0.1239, allocations: 12 kB / 366.1 MB, free: 5.008 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.339e-06/0.1239, allocations: 3.938 kB / 366.1 MB, free: 5.004 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.82e-05/0.1239, allocations: 11.98 kB / 366.1 MB, free: 4.992 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.973e-06/0.1239, allocations: 0 / 366.1 MB, free: 4.992 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.1239, allocations: 4 kB / 366.1 MB, free: 4.988 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002903/0.1242, allocations: 272.1 kB / 366.4 MB, free: 4.703 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.331e-05/0.1243, allocations: 96.84 kB / 366.5 MB, free: 4.59 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.908e-05/0.1243, allocations: 11.88 kB / 366.5 MB, free: 4.578 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.952e-05/0.1244, allocations: 8 kB / 366.5 MB, free: 4.57 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.729e-05/0.1245, allocations: 19.97 kB / 366.5 MB, free: 4.551 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.224e-05/0.1245, allocations: 12 kB / 366.5 MB, free: 4.539 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.843e-05/0.1246, allocations: 102.4 kB / 366.6 MB, free: 4.441 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1246, allocations: 0 / 366.6 MB, free: 4.441 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.00034/0.1249, allocations: 51.78 kB / 366.7 MB, free: 4.391 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,step.active,transition1.enableFire,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.000676/0.1256, allocations: 0.8174 MB / 367.5 MB, free: 3.547 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003707/0.126, allocations: 195.8 kB / 367.7 MB, free: 3.355 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.126, allocations: 0 / 367.7 MB, free: 3.355 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001287/0.1262, allocations: 79.86 kB / 367.8 MB, free: 3.277 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003078/0.1265, allocations: 30.78 kB / 367.8 MB, free: 3.25 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002281/0.1288, allocations: 2.056 MB / 369.8 MB, free: 1.051 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003309/0.1291, allocations: 0.7326 MB / 370.6 MB, free: 296 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.122e-05/0.1292, allocations: 21.95 kB / 370.6 MB, free: 276 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001014/0.1293, allocations: 59.41 kB / 370.7 MB, free: 220 kB / 302.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1293, allocations: 0 / 370.7 MB, free: 220 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1982/0.3275, allocations: 3.438 MB / 374.1 MB, free: 19.93 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.614/7.941, allocations: 4.469 kB / 374.1 MB, free: 19.93 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2_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_Variant2.fmu > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2_res.csv","/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_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches