Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.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_Variant2,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001317/0.001317, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001397/0.001397, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.373/1.373, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001345/0.001345, allocations: 64.7 kB / 307 MB, free: 0.5273 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09406/0.09544, allocations: 50.52 MB / 357.6 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003058/0.09853, allocations: 1.686 MB / 359.2 MB, free: 12.32 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007036/0.09926, allocations: 283.2 kB / 359.5 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001213/0.0994, allocations: 4 kB / 359.5 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001383/0.09957, allocations: 27.67 kB / 359.6 MB, free: 12.01 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 5.536e-05/0.09964, allocations: 19.8 kB / 359.6 MB, free: 11.99 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004005/0.1, allocations: 119.8 kB / 359.7 MB, free: 11.87 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003106/0.1004, allocations: 271.5 kB / 360 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003167/0.1007, allocations: 202.9 kB / 360.2 MB, free: 11.4 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000104/0.1008, allocations: 83.72 kB / 360.2 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001333/0.1009, allocations: 103.5 kB / 360.3 MB, free: 11.22 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.663e-05/0.101, allocations: 24 kB / 360.4 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.72e-05/0.1011, allocations: 28 kB / 360.4 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.86e-05/0.1012, allocations: 59.83 kB / 360.4 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000114/0.1013, allocations: 111.5 kB / 360.6 MB, free: 11 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002643/0.1015, allocations: 239.5 kB / 360.8 MB, free: 10.77 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.1016, allocations: 0 / 360.8 MB, free: 10.77 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.1016, allocations: 0 / 360.8 MB, free: 10.77 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.642e-06/0.1016, allocations: 0 / 360.8 MB, free: 10.77 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.0006613/0.1022, allocations: 498.6 kB / 361.3 MB, free: 10.22 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.762e-05/0.1023, allocations: 8.031 kB / 361.3 MB, free: 10.21 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.171e-05/0.1024, allocations: 58.73 kB / 361.3 MB, free: 10.15 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001979/0.1026, allocations: 36.58 kB / 361.4 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002299/0.1028, allocations: 232 kB / 361.6 MB, free: 9.848 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.439e-05/0.1028, allocations: 24.88 kB / 361.6 MB, free: 9.824 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.575e-05/0.1029, allocations: 28.38 kB / 361.7 MB, free: 9.797 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000411/0.1033, allocations: 266.6 kB / 361.9 MB, free: 9.516 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.211e-05/0.1033, allocations: 3.938 kB / 361.9 MB, free: 9.512 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.462e-05/0.1034, allocations: 12 kB / 361.9 MB, free: 9.5 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.536e-06/0.1034, allocations: 8 kB / 361.9 MB, free: 9.492 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002886/0.1037, allocations: 173.5 kB / 362.1 MB, free: 9.32 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001058/0.1047, allocations: 0.9555 MB / 363.1 MB, free: 8.297 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00029/0.105, allocations: 181.2 kB / 363.2 MB, free: 8.102 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001288/0.1052, allocations: 81.16 kB / 363.3 MB, free: 8.02 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.986e-05/0.1052, allocations: 4 kB / 363.3 MB, free: 8.016 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002469/0.1055, allocations: 133.1 kB / 363.5 MB, free: 7.867 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 3.887e-06/0.1055, allocations: 0 / 363.5 MB, free: 7.867 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.000431/0.1059, allocations: 232.2 kB / 363.7 MB, free: 7.637 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.917e-05/0.106, allocations: 85.09 kB / 363.8 MB, free: 7.535 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001337/0.1061, allocations: 163.9 kB / 363.9 MB, free: 7.367 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.362e-05/0.1062, allocations: 33.7 kB / 364 MB, free: 7.328 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001074/0.1063, allocations: 128.6 kB / 364.1 MB, free: 7.199 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.768e-05/0.1064, allocations: 71.17 kB / 364.2 MB, free: 7.129 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001155/0.1065, allocations: 77.59 kB / 364.2 MB, free: 7.047 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001421/0.1066, allocations: 330.9 kB / 364.5 MB, free: 6.715 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001353/0.1068, allocations: 75.69 kB / 364.6 MB, free: 6.641 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001835/0.107, allocations: 132.5 kB / 364.8 MB, free: 6.48 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002807/0.1072, allocations: 196.4 kB / 364.9 MB, free: 6.258 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.1073, allocations: 4 kB / 364.9 MB, free: 6.254 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004135/0.1077, allocations: 253.2 kB / 365.2 MB, free: 6 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.982e-05/0.1077, allocations: 8 kB / 365.2 MB, free: 5.992 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.939e-06/0.1077, allocations: 3.984 kB / 365.2 MB, free: 5.988 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.109e-05/0.1077, allocations: 4 kB / 365.2 MB, free: 5.984 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001501/0.1079, allocations: 35.92 kB / 365.2 MB, free: 5.949 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.154e-05/0.1079, allocations: 8.281 kB / 365.3 MB, free: 5.941 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001187/0.1081, allocations: 27.72 kB / 365.3 MB, free: 5.914 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.888e-05/0.1081, allocations: 12 kB / 365.3 MB, free: 5.902 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.0001705/0.1083, allocations: 170.7 kB / 365.5 MB, free: 5.727 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.21e-05/0.1083, allocations: 15.81 kB / 365.5 MB, free: 5.711 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.412e-05/0.1084, allocations: 12.84 kB / 365.5 MB, free: 5.695 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.064e-06/0.1084, allocations: 4 kB / 365.5 MB, free: 5.691 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.1084, allocations: 0 / 365.5 MB, free: 5.691 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.666e-05/0.1084, allocations: 7.984 kB / 365.5 MB, free: 5.684 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008331/0.1092, allocations: 0.5789 MB / 366.1 MB, free: 5.043 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.517e-06/0.1093, allocations: 0 / 366.1 MB, free: 5.043 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.919e-05/0.1093, allocations: 19.98 kB / 366.1 MB, free: 5.023 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.69e-06/0.1094, allocations: 3.938 kB / 366.1 MB, free: 5.02 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.529e-05/0.1094, allocations: 4 kB / 366.1 MB, free: 5.016 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.766e-06/0.1094, allocations: 0 / 366.1 MB, free: 5.016 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.963e-06/0.1094, allocations: 0 / 366.1 MB, free: 5.016 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003614/0.1098, allocations: 281.5 kB / 366.4 MB, free: 4.723 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.343e-05/0.1098, allocations: 92.86 kB / 366.5 MB, free: 4.613 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.597e-05/0.1099, allocations: 7.938 kB / 366.5 MB, free: 4.605 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.677e-05/0.11, allocations: 11.94 kB / 366.5 MB, free: 4.594 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.327e-05/0.1101, allocations: 23.97 kB / 366.5 MB, free: 4.57 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.226e-05/0.1101, allocations: 4 kB / 366.5 MB, free: 4.566 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.934e-05/0.1102, allocations: 103.3 kB / 366.6 MB, free: 4.465 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.1102, allocations: 0 / 366.6 MB, free: 4.465 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003105/0.1105, allocations: 51.83 kB / 366.7 MB, free: 4.414 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.localActive,step.active,transition1.enableFire,initialStep.active,$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 (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.0005813/0.1111, allocations: 0.8135 MB / 367.5 MB, free: 3.574 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003552/0.1114, allocations: 199.9 kB / 367.7 MB, free: 3.379 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.1114, allocations: 0 / 367.7 MB, free: 3.379 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00013/0.1116, allocations: 75.91 kB / 367.8 MB, free: 3.305 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002882/0.1119, allocations: 26.97 kB / 367.8 MB, free: 3.281 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002353/0.1142, allocations: 2.052 MB / 369.8 MB, free: 1.086 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002842/0.1145, allocations: 0.7443 MB / 370.6 MB, free: 320 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.299e-05/0.1146, allocations: 25.89 kB / 370.6 MB, free: 296 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.836e-05/0.1147, allocations: 59.41 kB / 370.7 MB, free: 240 kB / 302.1 MB Notification: Performance of SimCode: time 6.92e-07/0.1148, allocations: 0 / 370.7 MB, free: 240 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1636/0.2784, allocations: 3.424 MB / 374.1 MB, free: 19.97 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.693/7.972, allocations: 11.73 kB / 374.1 MB, free: 19.97 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat --tempDir=temp_Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant2_fmu --startTime=0 --stopTime=5.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_StateGraph_Examples_FirstExample_Variant2.fmu > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches