Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.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,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample",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.0008213/0.0008214, allocations: 95.61 kB / 17.3 MB, free: 6.391 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.001057/0.001057, allocations: 175.6 kB / 18.21 MB, free: 5.551 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.674/1.674, allocations: 205.4 MB / 224.4 MB, free: 13.07 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.0004862/0.0004862, allocations: 19.94 kB / 281.5 MB, free: 3.336 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09871/0.09921, allocations: 47.57 MB / 329 MB, free: 3.688 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.001657/0.1009, allocations: 1.216 MB / 330.3 MB, free: 2.461 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006911/0.1016, allocations: 271.2 kB / 330.5 MB, free: 2.195 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001254/0.1018, allocations: 4 kB / 330.5 MB, free: 2.191 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001046/0.1019, allocations: 11.81 kB / 330.5 MB, free: 2.18 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 6.009e-05/0.102, allocations: 15.92 kB / 330.6 MB, free: 2.164 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000399/0.1024, allocations: 95.89 kB / 330.6 MB, free: 2.07 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003215/0.1027, allocations: 247.5 kB / 330.9 MB, free: 1.828 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003001/0.103, allocations: 146.2 kB / 331 MB, free: 1.68 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001167/0.1031, allocations: 67.72 kB / 331.1 MB, free: 1.613 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001395/0.1033, allocations: 75.55 kB / 331.2 MB, free: 1.539 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.146e-05/0.1033, allocations: 12 kB / 331.2 MB, free: 1.527 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.084e-05/0.1034, allocations: 19.98 kB / 331.2 MB, free: 1.508 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.919e-05/0.1035, allocations: 35.84 kB / 331.2 MB, free: 1.473 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001063/0.1036, allocations: 113.2 kB / 331.3 MB, free: 1.355 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002501/0.1039, allocations: 199.3 kB / 331.5 MB, free: 1.16 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.1039, allocations: 0 / 331.5 MB, free: 1.16 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.1039, allocations: 0 / 331.5 MB, free: 1.16 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.464e-05/0.1039, allocations: 0 / 331.5 MB, free: 1.16 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0007095/0.1046, allocations: 438.9 kB / 332 MB, free: 0.6797 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.984e-05/0.1047, allocations: 12.03 kB / 332 MB, free: 0.668 MB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.67e-05/0.1048, allocations: 58.73 kB / 332 MB, free: 0.6016 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.988e-05/0.1048, allocations: 28.64 kB / 332.1 MB, free: 0.5742 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002513/0.1051, allocations: 228 kB / 332.3 MB, free: 320 kB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.88e-05/0.1051, allocations: 20.94 kB / 332.3 MB, free: 300 kB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.994e-05/0.1052, allocations: 24.38 kB / 332.3 MB, free: 276 kB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004197/0.1056, allocations: 244 kB / 332.6 MB, free: 16 kB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.203e-05/0.1056, allocations: 3.938 kB / 332.6 MB, free: 12 kB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.439e-05/0.1057, allocations: 7.938 kB / 332.6 MB, free: 4 kB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.128e-05/0.1057, allocations: 11.98 kB / 332.6 MB, free: 15.99 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002904/0.106, allocations: 161.6 kB / 332.8 MB, free: 15.84 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001128/0.1071, allocations: 0.709 MB / 333.5 MB, free: 15.07 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002982/0.1074, allocations: 166.8 kB / 333.6 MB, free: 14.9 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001218/0.1076, allocations: 80.83 kB / 333.7 MB, free: 14.82 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.394e-05/0.1076, allocations: 7.938 kB / 333.7 MB, free: 14.81 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002238/0.1078, allocations: 119.3 kB / 333.8 MB, free: 14.68 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.422e-06/0.1078, allocations: 0 / 333.8 MB, free: 14.68 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004313/0.1083, allocations: 221.8 kB / 334 MB, free: 14.46 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.267e-05/0.1083, allocations: 63.39 kB / 334.1 MB, free: 14.38 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001136/0.1085, allocations: 141.9 kB / 334.2 MB, free: 14.23 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.265e-05/0.1085, allocations: 37.7 kB / 334.3 MB, free: 14.19 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.947e-05/0.1086, allocations: 124.7 kB / 334.4 MB, free: 14.07 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.877e-05/0.1086, allocations: 55.2 kB / 334.5 MB, free: 14.01 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.896e-05/0.1087, allocations: 49.69 kB / 334.5 MB, free: 13.96 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001186/0.1088, allocations: 334.8 kB / 334.8 MB, free: 13.62 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001198/0.109, allocations: 64.62 kB / 334.9 MB, free: 13.55 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001451/0.1091, allocations: 128.1 kB / 335 MB, free: 13.41 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002351/0.1094, allocations: 174.6 kB / 335.2 MB, free: 13.21 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.1094, allocations: 0 / 335.2 MB, free: 13.21 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003717/0.1097, allocations: 245.2 kB / 335.4 MB, free: 12.96 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.294e-05/0.1098, allocations: 8 kB / 335.4 MB, free: 12.96 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.323e-06/0.1098, allocations: 0 / 335.4 MB, free: 12.96 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.727e-05/0.1098, allocations: 4 kB / 335.4 MB, free: 12.95 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001415/0.11, allocations: 31.92 kB / 335.5 MB, free: 12.92 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.508e-06/0.11, allocations: 4 kB / 335.5 MB, free: 12.92 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001145/0.1101, allocations: 31.67 kB / 335.5 MB, free: 12.89 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.218e-05/0.1101, allocations: 16.22 kB / 335.5 MB, free: 12.87 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,transition2.t_start,$PRE.transition2.t_start,transition2.fire,transition2.enableFire,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,step.active,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,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.0001872/0.1103, allocations: 157.7 kB / 335.7 MB, free: 12.71 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.56e-05/0.1104, allocations: 7.906 kB / 335.7 MB, free: 12.7 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003717/0.1107, allocations: 202.2 kB / 335.9 MB, free: 12.5 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.991e-06/0.1108, allocations: 4 kB / 335.9 MB, free: 12.49 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.846e-06/0.1108, allocations: 0 / 335.9 MB, free: 12.49 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.502e-06/0.1108, allocations: 7.922 kB / 335.9 MB, free: 12.48 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007588/0.1116, allocations: 0.588 MB / 336.5 MB, free: 11.84 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.1116, allocations: 0 / 336.5 MB, free: 11.84 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.606e-05/0.1116, allocations: 15.94 kB / 336.5 MB, free: 11.82 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.1117, allocations: 0 / 336.5 MB, free: 11.82 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.766e-05/0.1117, allocations: 7.984 kB / 336.5 MB, free: 11.82 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.684e-06/0.1117, allocations: 4 kB / 336.5 MB, free: 11.81 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.1117, allocations: 3.938 kB / 336.5 MB, free: 11.81 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003025/0.112, allocations: 275.3 kB / 336.8 MB, free: 11.52 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.642e-05/0.1121, allocations: 92.86 kB / 336.9 MB, free: 11.41 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.465e-05/0.1121, allocations: 8 kB / 336.9 MB, free: 11.41 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.681e-05/0.1122, allocations: 8 kB / 336.9 MB, free: 11.4 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.999e-05/0.1123, allocations: 27.91 kB / 336.9 MB, free: 11.37 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.636e-05/0.1123, allocations: 7.984 kB / 336.9 MB, free: 11.36 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.378e-05/0.1124, allocations: 95.27 kB / 337 MB, free: 11.27 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1124, allocations: 4 kB / 337 MB, free: 11.27 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003003/0.1127, allocations: 47.84 kB / 337.1 MB, free: 11.22 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 (transition2.enableFire,step.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.active,step.newActive,step.oldActive,transition2.fire,transition2.t_start,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 (26): * Single equations (assignments): 22 * 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.000634/0.1133, allocations: 0.8141 MB / 337.9 MB, free: 10.38 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003246/0.1136, allocations: 184.3 kB / 338.1 MB, free: 10.2 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.1137, allocations: 4.125 kB / 338.1 MB, free: 10.19 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001259/0.1138, allocations: 83.84 kB / 338.2 MB, free: 10.11 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002932/0.1141, allocations: 27.92 kB / 338.2 MB, free: 10.08 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002341/0.1164, allocations: 2.059 MB / 340.2 MB, free: 7.902 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003876/0.1169, allocations: 0.7326 MB / 341 MB, free: 7.145 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001002/0.117, allocations: 21.94 kB / 341 MB, free: 7.121 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001162/0.1171, allocations: 67.42 kB / 341.1 MB, free: 7.055 MB / 286.1 MB Notification: Performance of SimCode: time 7.01e-07/0.1171, allocations: 0 / 341.1 MB, free: 7.055 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01555/0.1327, allocations: 3.266 MB / 344.3 MB, free: 3.797 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002592/0.133, allocations: 190.9 kB / 344.5 MB, free: 3.539 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.816/1.949, allocations: 0 / 344.5 MB, free: 3.539 MB / 286.1 MB (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample.fmu > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches