Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_Variant2,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant2",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.002146/0.002146, allocations: 104.1 kB / 17.58 MB, free: 5.422 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.002374/0.002374, allocations: 195.9 kB / 18.51 MB, free: 4.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.446/1.446, allocations: 205.1 MB / 224.4 MB, free: 12.29 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001705/0.001705, allocations: 56.14 kB / 280.7 MB, free: 3.078 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09111/0.09283, allocations: 46.62 MB / 327.4 MB, free: 4.383 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003161/0.09603, allocations: 1.651 MB / 329 MB, free: 2.707 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007303/0.09679, allocations: 267.1 kB / 329.3 MB, free: 2.445 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.862e-05/0.0969, allocations: 7.938 kB / 329.3 MB, free: 2.438 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001359/0.09706, allocations: 23.73 kB / 329.3 MB, free: 2.414 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 5.81e-05/0.09712, allocations: 23.75 kB / 329.3 MB, free: 2.391 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004064/0.09753, allocations: 123.8 kB / 329.5 MB, free: 2.27 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003215/0.09787, allocations: 263.5 kB / 329.7 MB, free: 2.012 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003121/0.09819, allocations: 198.8 kB / 329.9 MB, free: 1.812 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001077/0.0983, allocations: 83.72 kB / 330 MB, free: 1.73 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000138/0.09845, allocations: 95.59 kB / 330.1 MB, free: 1.637 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.313e-05/0.0985, allocations: 24 kB / 330.1 MB, free: 1.613 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.289e-05/0.09859, allocations: 31.98 kB / 330.1 MB, free: 1.582 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.498e-05/0.09867, allocations: 55.84 kB / 330.2 MB, free: 1.527 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001154/0.09879, allocations: 111.4 kB / 330.3 MB, free: 1.418 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002797/0.09908, allocations: 239.5 kB / 330.5 MB, free: 1.184 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.09909, allocations: 0 / 330.5 MB, free: 1.184 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.0991, allocations: 0 / 330.5 MB, free: 1.184 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.48e-06/0.09911, allocations: 0 / 330.5 MB, free: 1.184 MB / 270.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.0006835/0.0998, allocations: 490.1 kB / 331 MB, free: 0.6523 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.138e-05/0.09985, allocations: 16.02 kB / 331 MB, free: 0.6367 MB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.203e-05/0.09993, allocations: 58.73 kB / 331.1 MB, free: 0.5703 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.726e-05/0.09999, allocations: 24.66 kB / 331.1 MB, free: 0.5469 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002697/0.1003, allocations: 232 kB / 331.3 MB, free: 288 kB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.166e-05/0.1003, allocations: 28.81 kB / 331.4 MB, free: 260 kB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.311e-05/0.1004, allocations: 24.38 kB / 331.4 MB, free: 236 kB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004865/0.1008, allocations: 270.6 kB / 331.7 MB, free: 15.95 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.296e-05/0.1009, allocations: 7.938 kB / 331.7 MB, free: 15.94 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.427e-05/0.1009, allocations: 8 kB / 331.7 MB, free: 15.93 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.93e-05/0.1009, allocations: 11.98 kB / 331.7 MB, free: 15.92 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000312/0.1012, allocations: 165.6 kB / 331.8 MB, free: 15.76 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001205/0.1025, allocations: 0.9711 MB / 332.8 MB, free: 14.72 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002875/0.1028, allocations: 154.8 kB / 333 MB, free: 14.56 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001268/0.1029, allocations: 76.77 kB / 333 MB, free: 14.48 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.498e-05/0.1029, allocations: 7.984 kB / 333 MB, free: 14.48 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002501/0.1032, allocations: 115.3 kB / 333.2 MB, free: 14.35 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 1.784e-06/0.1032, allocations: 0 / 333.2 MB, free: 14.35 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004507/0.1037, allocations: 209.4 kB / 333.4 MB, free: 14.14 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.21e-05/0.1037, allocations: 55.41 kB / 333.4 MB, free: 14.07 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001397/0.1039, allocations: 163 kB / 333.6 MB, free: 13.91 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.748e-05/0.1039, allocations: 41.69 kB / 333.6 MB, free: 13.86 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001095/0.104, allocations: 144.4 kB / 333.8 MB, free: 13.71 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.265e-05/0.1041, allocations: 51.34 kB / 333.8 MB, free: 13.66 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001141/0.1042, allocations: 85.91 kB / 333.9 MB, free: 13.57 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001471/0.1044, allocations: 326.8 kB / 334.2 MB, free: 13.25 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001281/0.1045, allocations: 68.62 kB / 334.3 MB, free: 13.18 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001992/0.1047, allocations: 141.7 kB / 334.4 MB, free: 13.01 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002797/0.105, allocations: 192.3 kB / 334.6 MB, free: 12.79 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.105, allocations: 4 kB / 334.6 MB, free: 12.79 MB / 286.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004112/0.1054, allocations: 245.3 kB / 334.8 MB, free: 12.54 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.826e-05/0.1054, allocations: 8 kB / 334.9 MB, free: 12.54 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.54e-06/0.1055, allocations: 0 / 334.9 MB, free: 12.54 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.803e-05/0.1055, allocations: 4 kB / 334.9 MB, free: 12.53 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001456/0.1056, allocations: 43.8 kB / 334.9 MB, free: 12.49 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.145e-05/0.1056, allocations: 7.984 kB / 334.9 MB, free: 12.48 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001002/0.1058, allocations: 23.78 kB / 334.9 MB, free: 12.46 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.38e-05/0.1058, allocations: 12 kB / 334.9 MB, free: 12.45 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: 30 ($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,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 (40): * Single equations (assignments): 40 * 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.0001629/0.106, allocations: 164.5 kB / 335.1 MB, free: 12.27 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.59e-05/0.106, allocations: 11.81 kB / 335.1 MB, free: 12.26 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003561/0.1064, allocations: 190.7 kB / 335.3 MB, free: 12.07 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.1064, allocations: 0 / 335.3 MB, free: 12.07 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.1064, allocations: 0 / 335.3 MB, free: 12.07 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.512e-06/0.1064, allocations: 3.984 kB / 335.3 MB, free: 12.07 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007785/0.1072, allocations: 0.591 MB / 335.9 MB, free: 11.41 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.1072, allocations: 0 / 335.9 MB, free: 11.41 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.205e-05/0.1073, allocations: 23.92 kB / 335.9 MB, free: 11.39 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.936e-06/0.1073, allocations: 0 / 335.9 MB, free: 11.39 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.459e-05/0.1073, allocations: 4 kB / 335.9 MB, free: 11.39 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.774e-06/0.1073, allocations: 0 / 335.9 MB, free: 11.39 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.509e-06/0.1073, allocations: 3.984 kB / 335.9 MB, free: 11.38 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003291/0.1077, allocations: 279.1 kB / 336.2 MB, free: 11.09 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.236e-05/0.1077, allocations: 96.89 kB / 336.3 MB, free: 10.98 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.144e-05/0.1078, allocations: 11.98 kB / 336.3 MB, free: 10.97 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.665e-05/0.1079, allocations: 4 kB / 336.3 MB, free: 10.96 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.927e-05/0.1079, allocations: 27.95 kB / 336.3 MB, free: 10.94 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.396e-05/0.108, allocations: 4 kB / 336.3 MB, free: 10.93 MB / 286.1 MB Notification: Performance of sorting global known variables: time 7.187e-05/0.108, allocations: 100.1 kB / 336.4 MB, free: 10.84 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1081, allocations: 0 / 336.4 MB, free: 10.84 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003248/0.1084, allocations: 51.84 kB / 336.5 MB, free: 10.79 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 19 (step.localActive,step.active,transition1.enableFire,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: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0007197/0.1091, allocations: 0.8268 MB / 337.3 MB, free: 9.934 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.000394/0.1095, allocations: 199.7 kB / 337.5 MB, free: 9.738 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.1095, allocations: 0 / 337.5 MB, free: 9.738 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001406/0.1097, allocations: 80.47 kB / 337.6 MB, free: 9.66 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002998/0.11, allocations: 31.97 kB / 337.6 MB, free: 9.629 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002428/0.1124, allocations: 2.04 MB / 339.7 MB, free: 7.449 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004016/0.1128, allocations: 0.7285 MB / 340.4 MB, free: 6.695 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 9.123e-05/0.1129, allocations: 29.94 kB / 340.4 MB, free: 6.664 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001125/0.1131, allocations: 63.41 kB / 340.5 MB, free: 6.602 MB / 286.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1131, allocations: 0 / 340.5 MB, free: 6.602 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02654/0.1396, allocations: 3.637 MB / 344.1 MB, free: 2.91 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.219/8.358, allocations: 23.72 kB / 344.1 MB, free: 2.887 MB / 286.1 MB (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant2.fmu > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches