Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.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_Variant3,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008356/0.0008356, allocations: 93.56 kB / 17.35 MB, free: 6.023 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009665/0.0009665, allocations: 200.3 kB / 18.28 MB, free: 5.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.248/1.248, allocations: 227.7 MB / 246.8 MB, free: 11.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002413/0.0002414, allocations: 4 kB / 307.8 MB, free: 0.7422 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09395/0.09421, allocations: 51.53 MB / 359.3 MB, free: 13.21 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.001995/0.09625, allocations: 1.448 MB / 360.8 MB, free: 11.76 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007252/0.09699, allocations: 299.1 kB / 361.1 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001522/0.09717, allocations: 4 kB / 361.1 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001234/0.0973, allocations: 19.8 kB / 361.1 MB, free: 11.44 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 5.658e-05/0.09737, allocations: 7.922 kB / 361.1 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003564/0.09773, allocations: 103.9 kB / 361.2 MB, free: 11.33 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000314/0.09806, allocations: 255.5 kB / 361.5 MB, free: 11.08 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003503/0.09842, allocations: 161.8 kB / 361.6 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.436e-05/0.09851, allocations: 79.64 kB / 361.7 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001088/0.09863, allocations: 79.55 kB / 361.8 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.149e-05/0.09866, allocations: 12 kB / 361.8 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.811e-05/0.09871, allocations: 12 kB / 361.8 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.999e-05/0.09877, allocations: 47.83 kB / 361.9 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.487e-05/0.09886, allocations: 109.2 kB / 362 MB, free: 10.58 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001981/0.09907, allocations: 199.5 kB / 362.2 MB, free: 10.39 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.09908, allocations: 0 / 362.2 MB, free: 10.39 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.09909, allocations: 0 / 362.2 MB, free: 10.39 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.031e-06/0.0991, allocations: 4 kB / 362.2 MB, free: 10.38 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.0005339/0.09964, allocations: 458.6 kB / 362.6 MB, free: 9.879 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.69e-05/0.09968, allocations: 8.031 kB / 362.6 MB, free: 9.871 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.179e-05/0.09975, allocations: 58.73 kB / 362.7 MB, free: 9.805 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001939/0.09995, allocations: 32.64 kB / 362.7 MB, free: 9.773 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002149/0.1002, allocations: 224.1 kB / 362.9 MB, free: 9.516 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.264e-05/0.1002, allocations: 20.94 kB / 362.9 MB, free: 9.492 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.48e-05/0.1003, allocations: 28.38 kB / 363 MB, free: 9.465 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004055/0.1007, allocations: 274.5 kB / 363.2 MB, free: 9.176 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.053e-05/0.1007, allocations: 3.938 kB / 363.2 MB, free: 9.172 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.188e-05/0.1007, allocations: 12 kB / 363.3 MB, free: 9.16 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.939e-06/0.1007, allocations: 11.98 kB / 363.3 MB, free: 9.148 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002705/0.101, allocations: 157.6 kB / 363.4 MB, free: 8.992 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001033/0.102, allocations: 0.9672 MB / 364.4 MB, free: 7.957 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002744/0.1023, allocations: 177.3 kB / 364.6 MB, free: 7.766 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001169/0.1025, allocations: 77.73 kB / 364.6 MB, free: 7.684 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.833e-05/0.1025, allocations: 8 kB / 364.6 MB, free: 7.676 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002063/0.1027, allocations: 138.2 kB / 364.8 MB, free: 7.523 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 2.685e-06/0.1027, allocations: 3.984 kB / 364.8 MB, free: 7.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.0003925/0.1031, allocations: 224.6 kB / 365 MB, free: 7.297 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.869e-05/0.1032, allocations: 89.09 kB / 365.1 MB, free: 7.191 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001077/0.1033, allocations: 149.8 kB / 365.2 MB, free: 7.035 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.066e-05/0.1033, allocations: 41.69 kB / 365.3 MB, free: 6.988 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.047e-05/0.1034, allocations: 140.5 kB / 365.4 MB, free: 6.848 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.709e-05/0.1035, allocations: 55.2 kB / 365.5 MB, free: 6.793 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.862e-05/0.1036, allocations: 61.62 kB / 365.5 MB, free: 6.727 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001153/0.1037, allocations: 330.8 kB / 365.9 MB, free: 6.395 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001139/0.1038, allocations: 63.75 kB / 365.9 MB, free: 6.332 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001599/0.104, allocations: 148.4 kB / 366.1 MB, free: 6.156 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002497/0.1042, allocations: 189 kB / 366.2 MB, free: 5.941 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.1042, allocations: 4 kB / 366.2 MB, free: 5.938 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003604/0.1046, allocations: 253.3 kB / 366.5 MB, free: 5.684 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.458e-05/0.1046, allocations: 4 kB / 366.5 MB, free: 5.68 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.1046, allocations: 4 kB / 366.5 MB, free: 5.676 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.51e-05/0.1047, allocations: 4 kB / 366.5 MB, free: 5.672 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001323/0.1048, allocations: 35.86 kB / 366.5 MB, free: 5.637 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.506e-06/0.1048, allocations: 4 kB / 366.5 MB, free: 5.633 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000108/0.1049, allocations: 27.73 kB / 366.6 MB, free: 5.605 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.581e-05/0.105, allocations: 20 kB / 366.6 MB, free: 5.586 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.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,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.000132/0.1051, allocations: 162.9 kB / 366.7 MB, free: 5.418 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.234e-05/0.1051, allocations: 15.89 kB / 366.8 MB, free: 5.402 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.754e-05/0.1052, allocations: 20.84 kB / 366.8 MB, free: 5.383 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.1052, allocations: 0 / 366.8 MB, free: 5.383 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.1052, allocations: 0 / 366.8 MB, free: 5.383 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.1052, allocations: 4 kB / 366.8 MB, free: 5.379 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006591/0.1059, allocations: 0.579 MB / 367.4 MB, free: 4.738 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.1059, allocations: 0 / 367.4 MB, free: 4.738 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.777e-05/0.106, allocations: 19.92 kB / 367.4 MB, free: 4.719 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.659e-06/0.106, allocations: 3.938 kB / 367.4 MB, free: 4.715 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.524e-05/0.106, allocations: 8 kB / 367.4 MB, free: 4.707 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.106, allocations: 0 / 367.4 MB, free: 4.707 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.106, allocations: 0 / 367.4 MB, free: 4.707 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002971/0.1063, allocations: 283.3 kB / 367.7 MB, free: 4.414 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.167e-05/0.1064, allocations: 88.95 kB / 367.8 MB, free: 4.309 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.654e-05/0.1064, allocations: 11.92 kB / 367.8 MB, free: 4.297 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.597e-05/0.1065, allocations: 7.938 kB / 367.8 MB, free: 4.289 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.127e-05/0.1066, allocations: 23.97 kB / 367.8 MB, free: 4.266 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.143e-05/0.1066, allocations: 4 kB / 367.8 MB, free: 4.262 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.302e-05/0.1066, allocations: 102.8 kB / 367.9 MB, free: 4.164 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1066, allocations: 0 / 367.9 MB, free: 4.164 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002735/0.1069, allocations: 51.84 kB / 368 MB, free: 4.113 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.active,transition1.enableFire,step.localActive,initialStep.localActive,$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: 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.0005415/0.1075, allocations: 0.8183 MB / 368.8 MB, free: 3.266 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000273/0.1078, allocations: 180.1 kB / 369 MB, free: 3.09 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.1078, allocations: 0 / 369 MB, free: 3.09 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001338/0.1079, allocations: 85.27 kB / 369 MB, free: 3.008 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002706/0.1082, allocations: 23.92 kB / 369.1 MB, free: 2.984 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002071/0.1103, allocations: 2.108 MB / 371.2 MB, free: 0.7305 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1423/0.2526, allocations: 0.7329 MB / 371.9 MB, free: 18.89 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001241/0.2527, allocations: 18.92 kB / 371.9 MB, free: 18.88 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001182/0.2528, allocations: 58.36 kB / 372 MB, free: 18.88 MB / 302.1 MB Notification: Performance of SimCode: time 5.51e-07/0.2528, allocations: 0 / 372 MB, free: 18.88 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01282/0.2657, allocations: 3.116 MB / 375.1 MB, free: 18.65 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001402/0.2658, allocations: 202.9 kB / 375.3 MB, free: 18.39 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.672/1.938, allocations: 0 / 375.3 MB, free: 18.39 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat --tempDir=temp_Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant3_fmu --startTime=0 --stopTime=5.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant3.fmu > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/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_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches