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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008132/0.0008132, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008513/0.0008513, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8808/0.8808, allocations: 177 MB / 204.1 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.352e-06/1.352e-06, allocations: 0 / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.072e-05/1.207e-05, allocations: 3.125 kB / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.001855/0.001867, allocations: 1.828 MB / 326.3 MB, free: 14.05 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007371/0.002604, allocations: 0.6349 MB / 327 MB, free: 13.41 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.875e-05/0.002683, allocations: 7.938 kB / 327 MB, free: 13.4 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001058/0.002789, allocations: 23.67 kB / 327 MB, free: 13.38 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001243/0.002913, allocations: 43.59 kB / 327 MB, free: 13.33 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002401/0.003153, allocations: 83.72 kB / 327.1 MB, free: 13.25 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001655/0.003319, allocations: 179.2 kB / 327.3 MB, free: 13.07 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000131/0.00345, allocations: 48.33 kB / 327.3 MB, free: 13.03 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000139/0.003589, allocations: 99.78 kB / 327.4 MB, free: 12.93 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001053/0.003694, allocations: 67.78 kB / 327.5 MB, free: 12.86 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.166e-05/0.003716, allocations: 12 kB / 327.5 MB, free: 12.85 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.976e-05/0.003775, allocations: 27.88 kB / 327.5 MB, free: 12.82 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.576e-05/0.003831, allocations: 43.83 kB / 327.6 MB, free: 12.78 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.014e-05/0.003881, allocations: 51.83 kB / 327.6 MB, free: 12.73 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001929/0.004074, allocations: 195.3 kB / 327.8 MB, free: 12.54 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.583e-06/0.004076, allocations: 0 / 327.8 MB, free: 12.54 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.22e-07/0.004077, allocations: 4 kB / 327.8 MB, free: 12.54 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.316e-06/0.00408, allocations: 0 / 327.8 MB, free: 12.54 MB / 298.7 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.0005364/0.004616, allocations: 449.4 kB / 328.3 MB, free: 12.06 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.311e-05/0.004649, allocations: 15.92 kB / 328.3 MB, free: 12.05 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.603e-05/0.004686, allocations: 46.73 kB / 328.3 MB, free: 11.99 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.731e-05/0.004773, allocations: 32.8 kB / 328.4 MB, free: 11.96 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003072/0.00508, allocations: 185.6 kB / 328.6 MB, free: 11.75 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.472e-05/0.005095, allocations: 16.58 kB / 328.6 MB, free: 11.74 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.658e-05/0.005111, allocations: 16.38 kB / 328.6 MB, free: 11.72 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000223/0.005334, allocations: 192.6 kB / 328.8 MB, free: 11.52 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.575e-06/0.005342, allocations: 4.125 kB / 328.8 MB, free: 11.52 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.212e-05/0.005354, allocations: 8.125 kB / 328.8 MB, free: 11.51 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.574e-05/0.00537, allocations: 11.98 kB / 328.8 MB, free: 11.5 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001765/0.005546, allocations: 143.8 kB / 328.9 MB, free: 11.36 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006393/0.006186, allocations: 0.7107 MB / 329.6 MB, free: 10.59 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001864/0.006372, allocations: 157.1 kB / 329.8 MB, free: 10.42 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.708e-05/0.006449, allocations: 73.73 kB / 329.9 MB, free: 10.34 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.852e-05/0.006478, allocations: 11.94 kB / 329.9 MB, free: 10.33 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000152/0.00663, allocations: 141 kB / 330 MB, free: 10.17 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.112e-06/0.006631, allocations: 0 / 330 MB, free: 10.17 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003441/0.006975, allocations: 261.9 kB / 330.3 MB, free: 9.91 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.665e-05/0.007012, allocations: 81.11 kB / 330.4 MB, free: 9.812 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001204/0.007132, allocations: 207.2 kB / 330.6 MB, free: 9.602 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.271e-05/0.007145, allocations: 29.7 kB / 330.6 MB, free: 9.566 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.449e-05/0.007209, allocations: 144.3 kB / 330.7 MB, free: 9.422 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.562e-05/0.007235, allocations: 47.64 kB / 330.8 MB, free: 9.375 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.331e-05/0.007278, allocations: 41.7 kB / 330.8 MB, free: 9.328 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.409e-05/0.007352, allocations: 330.8 kB / 331.1 MB, free: 8.996 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.421e-05/0.007436, allocations: 71.89 kB / 331.2 MB, free: 8.926 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001008/0.007537, allocations: 131.6 kB / 331.3 MB, free: 8.773 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000181/0.007718, allocations: 202.6 kB / 331.5 MB, free: 8.551 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.476e-06/0.007722, allocations: 4 kB / 331.5 MB, free: 8.547 MB / 298.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000241/0.007963, allocations: 249.2 kB / 331.8 MB, free: 8.297 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.169e-05/0.007974, allocations: 8.188 kB / 331.8 MB, free: 8.289 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.00798, allocations: 4 kB / 331.8 MB, free: 8.285 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.002e-05/0.00799, allocations: 0 / 331.8 MB, free: 8.285 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.88e-05/0.008078, allocations: 36.02 kB / 331.8 MB, free: 8.25 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.892e-06/0.008084, allocations: 7.938 kB / 331.8 MB, free: 8.242 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.063e-05/0.008155, allocations: 27.88 kB / 331.9 MB, free: 8.215 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.073e-05/0.008166, allocations: 11.98 kB / 331.9 MB, free: 8.203 MB / 298.7 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 7.827e-05/0.008244, allocations: 137.8 kB / 332 MB, free: 8.059 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.81e-05/0.008262, allocations: 31.8 kB / 332 MB, free: 8.027 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002416/0.008504, allocations: 211 kB / 332.2 MB, free: 7.816 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.495e-06/0.008506, allocations: 4 kB / 332.3 MB, free: 7.812 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.008509, allocations: 0 / 332.3 MB, free: 7.812 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.008514, allocations: 3.984 kB / 332.3 MB, free: 7.809 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001491/0.008663, allocations: 224.6 kB / 332.5 MB, free: 7.547 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.008665, allocations: 3.938 kB / 332.5 MB, free: 7.543 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.998e-05/0.008715, allocations: 19.98 kB / 332.5 MB, free: 7.523 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.008717, allocations: 0 / 332.5 MB, free: 7.523 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.211e-05/0.008729, allocations: 11.98 kB / 332.5 MB, free: 7.512 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.00873, allocations: 0 / 332.5 MB, free: 7.512 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.008731, allocations: 0 / 332.5 MB, free: 7.512 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002068/0.008938, allocations: 229.7 kB / 332.7 MB, free: 7.266 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.682e-05/0.008955, allocations: 19.78 kB / 332.8 MB, free: 7.246 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.557e-05/0.00897, allocations: 4 kB / 332.8 MB, free: 7.242 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.714e-05/0.009028, allocations: 19.97 kB / 332.8 MB, free: 7.223 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.981e-05/0.009067, allocations: 15.97 kB / 332.8 MB, free: 7.207 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.725e-06/0.009075, allocations: 8.094 kB / 332.8 MB, free: 7.199 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.325e-05/0.009148, allocations: 152.6 kB / 332.9 MB, free: 7.051 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009148, allocations: 0 / 332.9 MB, free: 7.051 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001619/0.00931, allocations: 39.95 kB / 333 MB, free: 7.012 MB / 298.7 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.0003886/0.009699, allocations: 0.7659 MB / 333.8 MB, free: 6.215 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002139/0.009913, allocations: 166.8 kB / 333.9 MB, free: 6.055 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.242e-06/0.009914, allocations: 4.062 kB / 333.9 MB, free: 6.051 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.798e-05/0.01001, allocations: 80.19 kB / 334 MB, free: 5.973 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001968/0.01021, allocations: 43.25 kB / 334 MB, free: 5.934 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001678/0.01189, allocations: 2.191 MB / 336.2 MB, free: 3.598 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.966e-05/0.01196, allocations: 124.9 kB / 336.4 MB, free: 3.457 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.797e-05/0.01202, allocations: 37.61 kB / 336.4 MB, free: 3.418 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.616e-05/0.01209, allocations: 60.47 kB / 336.4 MB, free: 3.359 MB / 298.7 MB Notification: Performance of SimCode: time 4.81e-07/0.01209, allocations: 0 / 336.4 MB, free: 3.359 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01479/0.02688, allocations: 4.992 MB / 341.4 MB, free: 14.48 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.888/6.915, allocations: 7.969 kB / 341.4 MB, free: 14.48 MB / 314.7 MB " [Timeout remaining time 653] (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 --stepSize=0.00198965 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_RealNetwork1.fmu > Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.555764789693058]