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.001215/0.001215, allocations: 104 kB / 16.92 MB, free: 5.793 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.001124/0.001124, allocations: 191.3 kB / 17.85 MB, free: 5.188 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.376/1.376, allocations: 222.9 MB / 241.5 MB, free: 15.23 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001621/0.001621, allocations: 48.08 kB / 300.7 MB, free: 5.785 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.1093, allocations: 49.44 MB / 350.1 MB, free: 4.332 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.002928/0.1123, allocations: 1.7 MB / 351.8 MB, free: 2.613 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006862/0.113, allocations: 283.2 kB / 352.1 MB, free: 2.336 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001196/0.1131, allocations: 11.94 kB / 352.1 MB, free: 2.324 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001448/0.1133, allocations: 31.67 kB / 352.2 MB, free: 2.293 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 5.763e-05/0.1133, allocations: 11.81 kB / 352.2 MB, free: 2.281 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004173/0.1138, allocations: 119.8 kB / 352.3 MB, free: 2.164 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003449/0.1141, allocations: 267.5 kB / 352.6 MB, free: 1.902 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003369/0.1145, allocations: 181.6 kB / 352.7 MB, free: 1.723 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000122/0.1146, allocations: 91.69 kB / 352.8 MB, free: 1.633 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001421/0.1148, allocations: 99.53 kB / 352.9 MB, free: 1.535 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.826e-05/0.1148, allocations: 24 kB / 352.9 MB, free: 1.512 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.026e-05/0.1149, allocations: 39.98 kB / 353 MB, free: 1.473 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.904e-05/0.115, allocations: 55.84 kB / 353 MB, free: 1.418 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001116/0.1151, allocations: 99.52 kB / 353.1 MB, free: 1.32 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000278/0.1154, allocations: 239.5 kB / 353.4 MB, free: 1.086 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.1154, allocations: 0 / 353.4 MB, free: 1.086 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.1154, allocations: 0 / 353.4 MB, free: 1.086 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.064e-05/0.1154, allocations: 4 kB / 353.4 MB, free: 1.082 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.0006785/0.1161, allocations: 490.7 kB / 353.8 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.072e-05/0.1162, allocations: 12.03 kB / 353.9 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.599e-05/0.1162, allocations: 66.72 kB / 353.9 MB, free: 472 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.838e-05/0.1163, allocations: 24.66 kB / 353.9 MB, free: 448 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00022/0.1165, allocations: 232.1 kB / 354.2 MB, free: 176 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.1e-05/0.1166, allocations: 20.94 kB / 354.2 MB, free: 156 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.722e-05/0.1166, allocations: 28.38 kB / 354.2 MB, free: 128 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004252/0.117, allocations: 274.6 kB / 354.5 MB, free: 15.84 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.318e-05/0.1171, allocations: 15.86 kB / 354.5 MB, free: 15.82 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.461e-05/0.1171, allocations: 8 kB / 354.5 MB, free: 15.81 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.464e-06/0.1171, allocations: 8 kB / 354.5 MB, free: 15.8 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002954/0.1174, allocations: 165.6 kB / 354.7 MB, free: 15.64 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001096/0.1185, allocations: 0.9709 MB / 355.7 MB, free: 14.61 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002887/0.1188, allocations: 181.4 kB / 355.8 MB, free: 14.41 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001208/0.119, allocations: 81.67 kB / 355.9 MB, free: 14.33 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.537e-05/0.119, allocations: 11.92 kB / 355.9 MB, free: 14.32 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002535/0.1192, allocations: 137.1 kB / 356.1 MB, free: 14.16 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.493e-06/0.1193, allocations: 0 / 356.1 MB, free: 14.16 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004388/0.1197, allocations: 228.8 kB / 356.3 MB, free: 13.94 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.178e-05/0.1198, allocations: 81.11 kB / 356.4 MB, free: 13.84 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001173/0.1199, allocations: 149.6 kB / 356.5 MB, free: 13.68 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.125e-05/0.1199, allocations: 37.7 kB / 356.5 MB, free: 13.64 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.391e-05/0.12, allocations: 144.5 kB / 356.7 MB, free: 13.5 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.154e-05/0.1201, allocations: 59.31 kB / 356.7 MB, free: 13.44 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.647e-05/0.1202, allocations: 85.67 kB / 356.8 MB, free: 13.35 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001015/0.1203, allocations: 330.8 kB / 357.1 MB, free: 13.02 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000119/0.1204, allocations: 63.97 kB / 357.2 MB, free: 12.95 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001536/0.1206, allocations: 140.3 kB / 357.3 MB, free: 12.79 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000247/0.1208, allocations: 197 kB / 357.5 MB, free: 12.56 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.1208, allocations: 0 / 357.5 MB, free: 12.56 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003717/0.1212, allocations: 253.2 kB / 357.8 MB, free: 12.31 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.075e-05/0.1212, allocations: 10.66 kB / 357.8 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/0.1213, allocations: 288 / 357.8 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.578e-05/0.1213, allocations: 8 kB / 357.8 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001349/0.1214, allocations: 39.8 kB / 357.8 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.376e-06/0.1214, allocations: 4 kB / 357.8 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001058/0.1215, allocations: 27.73 kB / 357.9 MB, free: 12.22 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.792e-05/0.1216, allocations: 16 kB / 357.9 MB, free: 12.21 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.0001377/0.1217, allocations: 161.6 kB / 358 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.636e-05/0.1218, allocations: 15.81 kB / 358.1 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003494/0.1221, allocations: 194.3 kB / 358.3 MB, free: 11.83 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/0.1221, allocations: 4 kB / 358.3 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.1221, allocations: 0 / 358.3 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.513e-06/0.1222, allocations: 3.984 kB / 358.3 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006831/0.1228, allocations: 0.587 MB / 358.8 MB, free: 11.17 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.083e-06/0.1229, allocations: 3.938 kB / 358.9 MB, free: 11.17 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.504e-05/0.1229, allocations: 12 kB / 358.9 MB, free: 11.16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.262e-05/0.123, allocations: 11.94 kB / 358.9 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.572e-05/0.123, allocations: 7.984 kB / 358.9 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.123, allocations: 0 / 358.9 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.123, allocations: 7.938 kB / 358.9 MB, free: 11.13 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002957/0.1233, allocations: 280.5 kB / 359.2 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.497e-05/0.1233, allocations: 104.8 kB / 359.3 MB, free: 10.71 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.851e-05/0.1234, allocations: 4 kB / 359.3 MB, free: 10.71 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001013/0.1235, allocations: 15.98 kB / 359.3 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.048e-05/0.1236, allocations: 19.97 kB / 359.3 MB, free: 10.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.374e-05/0.1236, allocations: 8 kB / 359.3 MB, free: 10.67 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.246e-05/0.1236, allocations: 98.64 kB / 359.4 MB, free: 10.57 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.1237, allocations: 0 / 359.4 MB, free: 10.57 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003101/0.124, allocations: 51.84 kB / 359.5 MB, free: 10.52 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,transition1.enableFire,step.active,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.0005857/0.1246, allocations: 0.8339 MB / 360.3 MB, free: 9.66 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003602/0.1249, allocations: 207.9 kB / 360.5 MB, free: 9.457 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1249, allocations: 0 / 360.5 MB, free: 9.457 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000131/0.1251, allocations: 84.33 kB / 360.6 MB, free: 9.375 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002868/0.1254, allocations: 24.61 kB / 360.6 MB, free: 9.352 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00209/0.1275, allocations: 2.061 MB / 362.7 MB, free: 7.145 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002677/0.1278, allocations: 0.7323 MB / 363.4 MB, free: 6.383 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.312e-05/0.1279, allocations: 29.95 kB / 363.4 MB, free: 6.352 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001031/0.128, allocations: 63.41 kB / 363.5 MB, free: 6.289 MB / 302.1 MB Notification: Performance of SimCode: time 2.71e-07/0.128, allocations: 0 / 363.5 MB, free: 6.289 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01959/0.1476, allocations: 3.633 MB / 367.1 MB, free: 2.727 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.811/7.959, allocations: 9.094 kB / 367.1 MB, free: 2.719 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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_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.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_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches