Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.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.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.RealNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_RealNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001058/0.001058, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001194/0.001194, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.36/1.36, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001213/0.001213, allocations: 68.27 kB / 307 MB, free: 0.543 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0852/0.08643, allocations: 50.53 MB / 357.6 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003142/0.0896, allocations: 1.868 MB / 359.4 MB, free: 12.12 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001227/0.09086, allocations: 0.6583 MB / 360.1 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001376/0.09102, allocations: 7.938 kB / 360.1 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001327/0.09119, allocations: 27.73 kB / 360.1 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001483/0.09134, allocations: 31.66 kB / 360.2 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002929/0.09164, allocations: 75.8 kB / 360.2 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002232/0.09188, allocations: 167.4 kB / 360.4 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00017/0.09206, allocations: 68.27 kB / 360.5 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001678/0.09223, allocations: 83.62 kB / 360.5 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001429/0.09239, allocations: 79.62 kB / 360.6 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.992e-05/0.09242, allocations: 15.94 kB / 360.6 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.838e-05/0.09252, allocations: 28 kB / 360.7 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.024e-05/0.09261, allocations: 43.81 kB / 360.7 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.146e-05/0.09271, allocations: 79.48 kB / 360.8 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002364/0.09295, allocations: 183.6 kB / 361 MB, free: 10.59 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.09296, allocations: 0 / 361 MB, free: 10.59 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.09297, allocations: 0 / 361 MB, free: 10.59 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.212e-06/0.09298, allocations: 0 / 361 MB, free: 10.59 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0008626/0.09385, allocations: 0.5144 MB / 361.5 MB, free: 10.02 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.686e-05/0.09391, allocations: 11.97 kB / 361.5 MB, free: 10.01 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.919e-05/0.09396, allocations: 46.73 kB / 361.5 MB, free: 9.957 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001566/0.09412, allocations: 36.64 kB / 361.6 MB, free: 9.922 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002405/0.09437, allocations: 239.6 kB / 361.8 MB, free: 9.648 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.08e-05/0.0944, allocations: 12.59 kB / 361.8 MB, free: 9.637 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.275e-05/0.09443, allocations: 16.38 kB / 361.8 MB, free: 9.621 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003363/0.09477, allocations: 203.9 kB / 362 MB, free: 9.406 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.027e-06/0.09479, allocations: 0 / 362 MB, free: 9.406 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.643e-05/0.09482, allocations: 4 kB / 362 MB, free: 9.402 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.147e-05/0.09484, allocations: 8 kB / 362 MB, free: 9.395 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000295/0.09514, allocations: 143.8 kB / 362.2 MB, free: 9.254 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001072/0.09623, allocations: 0.7857 MB / 363 MB, free: 8.406 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000324/0.09656, allocations: 165 kB / 363.1 MB, free: 8.227 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001513/0.09673, allocations: 73.81 kB / 363.2 MB, free: 8.148 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.76e-05/0.09678, allocations: 7.984 kB / 363.2 MB, free: 8.141 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002642/0.09705, allocations: 151.6 kB / 363.4 MB, free: 7.977 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.433e-06/0.09707, allocations: 0 / 363.4 MB, free: 7.977 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005911/0.09766, allocations: 253.5 kB / 363.6 MB, free: 7.723 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.371e-05/0.09774, allocations: 81.11 kB / 363.7 MB, free: 7.625 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002191/0.09796, allocations: 211 kB / 363.9 MB, free: 7.41 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.188e-05/0.098, allocations: 29.7 kB / 363.9 MB, free: 7.375 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.808e-05/0.0981, allocations: 140.2 kB / 364.1 MB, free: 7.23 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.966e-05/0.09815, allocations: 43.34 kB / 364.1 MB, free: 7.188 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.014e-05/0.09823, allocations: 45.7 kB / 364.2 MB, free: 7.137 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001361/0.09838, allocations: 342.8 kB / 364.5 MB, free: 6.793 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001595/0.09854, allocations: 67.95 kB / 364.6 MB, free: 6.727 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000197/0.09875, allocations: 121.9 kB / 364.7 MB, free: 6.586 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003377/0.0991, allocations: 203.3 kB / 364.9 MB, free: 6.363 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.344e-06/0.09911, allocations: 4.109 kB / 364.9 MB, free: 6.359 MB / 302.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004608/0.09958, allocations: 249.1 kB / 365.1 MB, free: 6.109 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.036e-05/0.09961, allocations: 8 kB / 365.1 MB, free: 6.102 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/0.09963, allocations: 0 / 365.1 MB, free: 6.102 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.159e-05/0.09965, allocations: 4 kB / 365.1 MB, free: 6.098 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001874/0.09985, allocations: 39.91 kB / 365.2 MB, free: 6.059 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.089e-05/0.09987, allocations: 4 kB / 365.2 MB, free: 6.055 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001771/0.1, allocations: 28.02 kB / 365.2 MB, free: 6.027 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.311e-05/0.1001, allocations: 15.94 kB / 365.2 MB, free: 6.012 MB / 302.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: 11 ($PRE.multiSwitch.u[1],$PRE.multiSwitch.u[2],$whenCondition2,$whenCondition1,booleanPulse2.pulseStart,$PRE.booleanPulse2.pulseStart,multiSwitch.firstActiveIndex,multiSwitch.u[2],multiSwitch.u[1],booleanPulse1.pulseStart,$PRE.booleanPulse1.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * 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.0001656/0.1003, allocations: 149.6 kB / 365.4 MB, free: 5.855 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.636e-05/0.1003, allocations: 19.72 kB / 365.4 MB, free: 5.836 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004382/0.1007, allocations: 210.9 kB / 365.6 MB, free: 5.617 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.888e-06/0.1008, allocations: 0 / 365.6 MB, free: 5.617 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.481e-06/0.1008, allocations: 4 kB / 365.6 MB, free: 5.613 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/0.1008, allocations: 4 kB / 365.6 MB, free: 5.609 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002589/0.101, allocations: 269.5 kB / 365.9 MB, free: 5.297 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.1011, allocations: 0 / 365.9 MB, free: 5.297 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001133/0.1012, allocations: 27.92 kB / 365.9 MB, free: 5.27 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.939e-06/0.1012, allocations: 4 kB / 365.9 MB, free: 5.266 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.471e-05/0.1012, allocations: 4 kB / 365.9 MB, free: 5.262 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.314e-06/0.1012, allocations: 0 / 365.9 MB, free: 5.262 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.816e-06/0.1012, allocations: 4 kB / 365.9 MB, free: 5.258 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003775/0.1016, allocations: 237.4 kB / 366.1 MB, free: 5.004 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.365e-05/0.1017, allocations: 92.91 kB / 366.2 MB, free: 4.895 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.978e-05/0.1017, allocations: 8 kB / 366.2 MB, free: 4.887 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000131/0.1018, allocations: 11.98 kB / 366.2 MB, free: 4.875 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.326e-05/0.1019, allocations: 19.97 kB / 366.3 MB, free: 4.855 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.161e-05/0.1019, allocations: 4 kB / 366.3 MB, free: 4.852 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001184/0.1021, allocations: 148.7 kB / 366.4 MB, free: 4.707 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1021, allocations: 0 / 366.4 MB, free: 4.707 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002735/0.1024, allocations: 39.92 kB / 366.4 MB, free: 4.668 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: 7 ($whenCondition2,$whenCondition1,booleanPulse1.pulseStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,booleanPulse2.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0007084/0.1031, allocations: 0.7652 MB / 367.2 MB, free: 3.871 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004156/0.1035, allocations: 179.8 kB / 367.4 MB, free: 3.695 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.791e-06/0.1035, allocations: 4 kB / 367.4 MB, free: 3.691 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00018/0.1037, allocations: 88.16 kB / 367.5 MB, free: 3.605 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003599/0.1041, allocations: 44.98 kB / 367.5 MB, free: 3.562 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002539/0.1066, allocations: 2.18 MB / 369.7 MB, free: 1.25 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002719/0.1069, allocations: 0.7319 MB / 370.4 MB, free: 0.4922 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001326/0.1071, allocations: 33.53 kB / 370.5 MB, free: 468 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.536e-05/0.1072, allocations: 59.41 kB / 370.5 MB, free: 408 kB / 302.1 MB Notification: Performance of SimCode: time 4.61e-07/0.1072, allocations: 0 / 370.5 MB, free: 408 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1648/0.272, allocations: 4.069 MB / 374.6 MB, free: 19.89 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.496/7.768, allocations: 10.41 kB / 374.6 MB, free: 19.89 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_RealNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_RealNetwork1.fmu > Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches