Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 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_Variant3,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_3_2_3_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.001642/0.001642, allocations: 112.4 kB / 17.28 MB, free: 6.199 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.001631/0.001631, allocations: 193.3 kB / 18.2 MB, free: 5.277 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.728/1.728, allocations: 205.1 MB / 224 MB, free: 12.45 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.001274/0.001274, allocations: 52.14 kB / 280.2 MB, free: 3.41 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09686/0.09815, allocations: 46.63 MB / 326.9 MB, free: 4.707 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.002605/0.1008, allocations: 1.783 MB / 328.6 MB, free: 2.906 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006144/0.1014, allocations: 275.1 kB / 328.9 MB, free: 2.637 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.973e-05/0.1015, allocations: 7.938 kB / 328.9 MB, free: 2.629 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000126/0.1017, allocations: 11.86 kB / 328.9 MB, free: 2.617 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 5.809e-05/0.1017, allocations: 11.92 kB / 328.9 MB, free: 2.605 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003621/0.1021, allocations: 99.83 kB / 329 MB, free: 2.508 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002843/0.1024, allocations: 275.5 kB / 329.3 MB, free: 2.238 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002793/0.1027, allocations: 189.4 kB / 329.5 MB, free: 2.055 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.572e-05/0.1028, allocations: 91.7 kB / 329.6 MB, free: 1.965 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001174/0.1029, allocations: 95.59 kB / 329.7 MB, free: 1.871 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.321e-05/0.103, allocations: 20 kB / 329.7 MB, free: 1.852 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.128e-05/0.103, allocations: 31.98 kB / 329.7 MB, free: 1.82 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.991e-05/0.1031, allocations: 55.78 kB / 329.8 MB, free: 1.766 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001028/0.1032, allocations: 107.5 kB / 329.9 MB, free: 1.66 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002506/0.1035, allocations: 235.5 kB / 330.1 MB, free: 1.43 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.197e-06/0.1035, allocations: 0 / 330.1 MB, free: 1.43 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1035, allocations: 0 / 330.1 MB, free: 1.43 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.863e-06/0.1035, allocations: 4 kB / 330.1 MB, free: 1.426 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.0006114/0.1041, allocations: 490 kB / 330.6 MB, free: 0.8906 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.431e-05/0.1042, allocations: 12.03 kB / 330.6 MB, free: 0.8789 MB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.372e-05/0.1042, allocations: 58.73 kB / 330.7 MB, free: 0.8125 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.68e-05/0.1043, allocations: 24.66 kB / 330.7 MB, free: 0.7891 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002337/0.1045, allocations: 232.1 kB / 330.9 MB, free: 0.5234 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.402e-05/0.1046, allocations: 20.94 kB / 330.9 MB, free: 0.5 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.691e-05/0.1046, allocations: 24.38 kB / 331 MB, free: 488 kB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004039/0.105, allocations: 274.6 kB / 331.2 MB, free: 192 kB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.528e-05/0.1051, allocations: 7.875 kB / 331.2 MB, free: 184 kB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.082e-05/0.1051, allocations: 12 kB / 331.3 MB, free: 172 kB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.894e-06/0.1051, allocations: 8 kB / 331.3 MB, free: 164 kB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002602/0.1054, allocations: 165.6 kB / 331.4 MB, free: 0 / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001073/0.1065, allocations: 0.9711 MB / 332.4 MB, free: 14.96 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002512/0.1067, allocations: 158.8 kB / 332.6 MB, free: 14.8 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001035/0.1068, allocations: 72.83 kB / 332.6 MB, free: 14.72 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.298e-05/0.1069, allocations: 0 / 332.6 MB, free: 14.72 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002525/0.1071, allocations: 119.3 kB / 332.7 MB, free: 14.59 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 2.294e-06/0.1071, allocations: 0 / 332.7 MB, free: 14.59 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004054/0.1075, allocations: 213.9 kB / 332.9 MB, free: 14.38 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.684e-05/0.1076, allocations: 55.41 kB / 333 MB, free: 14.31 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001198/0.1077, allocations: 157.5 kB / 333.2 MB, free: 14.15 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.37e-05/0.1078, allocations: 37.7 kB / 333.2 MB, free: 14.11 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.841e-05/0.1079, allocations: 140.4 kB / 333.3 MB, free: 13.96 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.922e-05/0.1079, allocations: 59.28 kB / 333.4 MB, free: 13.91 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.201e-05/0.108, allocations: 89.84 kB / 333.5 MB, free: 13.81 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001164/0.1081, allocations: 330.8 kB / 333.8 MB, free: 13.48 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000104/0.1082, allocations: 60.62 kB / 333.9 MB, free: 13.42 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001485/0.1084, allocations: 137.8 kB / 334 MB, free: 13.26 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002297/0.1086, allocations: 196.3 kB / 334.2 MB, free: 13.04 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.087e-06/0.1086, allocations: 4 kB / 334.2 MB, free: 13.03 MB / 286.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003327/0.109, allocations: 245.3 kB / 334.4 MB, free: 12.79 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.866e-05/0.109, allocations: 8 kB / 334.4 MB, free: 12.78 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.109, allocations: 288 / 334.4 MB, free: 12.78 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.594e-05/0.109, allocations: 11.98 kB / 334.4 MB, free: 12.77 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001355/0.1092, allocations: 31.92 kB / 334.5 MB, free: 12.73 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.207e-06/0.1092, allocations: 4 kB / 334.5 MB, free: 12.73 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001029/0.1093, allocations: 35.67 kB / 334.5 MB, free: 12.7 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.453e-05/0.1093, allocations: 8 kB / 334.5 MB, free: 12.69 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.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,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.0001274/0.1095, allocations: 160.3 kB / 334.7 MB, free: 12.52 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.439e-05/0.1095, allocations: 11.81 kB / 334.7 MB, free: 12.51 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003215/0.1098, allocations: 198.3 kB / 334.9 MB, free: 12.31 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.379e-06/0.1099, allocations: 4 kB / 334.9 MB, free: 12.3 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.1099, allocations: 0 / 334.9 MB, free: 12.3 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.67e-06/0.1099, allocations: 3.984 kB / 334.9 MB, free: 12.3 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006488/0.1105, allocations: 0.5832 MB / 335.5 MB, free: 11.66 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.1105, allocations: 3.938 kB / 335.5 MB, free: 11.65 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.248e-05/0.1106, allocations: 27.86 kB / 335.5 MB, free: 11.62 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.1106, allocations: 4 kB / 335.5 MB, free: 11.62 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.468e-05/0.1106, allocations: 4 kB / 335.5 MB, free: 11.62 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.1107, allocations: 0 / 335.5 MB, free: 11.62 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.1107, allocations: 0 / 335.5 MB, free: 11.62 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002711/0.1109, allocations: 275.2 kB / 335.8 MB, free: 11.33 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.164e-05/0.111, allocations: 92.89 kB / 335.9 MB, free: 11.22 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.408e-05/0.111, allocations: 0 / 335.9 MB, free: 11.22 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.694e-05/0.1111, allocations: 11.98 kB / 335.9 MB, free: 11.21 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.689e-05/0.1112, allocations: 23.97 kB / 335.9 MB, free: 11.19 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.491e-05/0.1112, allocations: 8 kB / 335.9 MB, free: 11.18 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.673e-05/0.1113, allocations: 99.27 kB / 336 MB, free: 11.08 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1113, allocations: 0 / 336 MB, free: 11.08 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002914/0.1116, allocations: 47.84 kB / 336.1 MB, free: 11.04 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.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: 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.0005784/0.1122, allocations: 0.8295 MB / 336.9 MB, free: 10.18 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003384/0.1125, allocations: 191.7 kB / 337.1 MB, free: 9.992 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.1125, allocations: 4 kB / 337.1 MB, free: 9.988 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001239/0.1126, allocations: 87.83 kB / 337.2 MB, free: 9.902 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002771/0.1129, allocations: 16 kB / 337.2 MB, free: 9.887 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002033/0.115, allocations: 2.096 MB / 339.3 MB, free: 7.656 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002839/0.1153, allocations: 0.7363 MB / 340 MB, free: 6.895 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 8.308e-05/0.1154, allocations: 25.95 kB / 340 MB, free: 6.871 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001097/0.1155, allocations: 67.41 kB / 340.1 MB, free: 6.805 MB / 286.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1155, allocations: 0 / 340.1 MB, free: 6.805 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5041/0.6196, allocations: 3.492 MB / 343.6 MB, free: 3.305 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003062/0.62, allocations: 203 kB / 343.8 MB, free: 3.047 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.084/2.704, allocations: 4.062 kB / 343.8 MB, free: 3.043 MB / 286.1 MB (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant3_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant3.fmu > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches