Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.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.001074/0.001074, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001583/0.002657, allocations: 449.7 kB / 10.37 MB, free: 324 kB / 10.45 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.001205/0.001205, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001654/0.00286, allocations: 463.6 kB / 11.72 MB, free: 2.453 MB / 13.93 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.9658/0.9658, allocations: 177.4 MB / 189.9 MB, free: 4.836 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08008/1.046, allocations: 53.86 MB / 243.7 MB, free: 14.91 MB / 250.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: translateModel(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|directInertia.inertia.phi|directInertia.inertia.w|inertia2a.phi|inertia2a.w|inertia2b.phi|inertia2b.w|inertia3a.phi|inertia3a.w|inertia3b.phi|inertia3b.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") translateModel(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|directInertia.inertia.phi|directInertia.inertia.w|inertia2a.phi|inertia2a.w|inertia2b.phi|inertia2b.w|inertia3a.phi|inertia3a.w|inertia3b.phi|inertia3b.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.092e-06/1.092e-06, allocations: 0 / 245 MB, free: 13.66 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.604e-05/1.713e-05, allocations: 2.312 kB / 245 MB, free: 13.65 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.004782/0.0048, allocations: 5.276 MB / 250.3 MB, free: 8.352 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003312/0.008112, allocations: 2.172 MB / 252.5 MB, free: 6.168 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007314/0.008843, allocations: 55.5 kB / 252.5 MB, free: 6.113 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003265/0.00917, allocations: 214.1 kB / 252.7 MB, free: 5.902 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003792/0.009549, allocations: 182.2 kB / 252.9 MB, free: 5.723 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007129/0.01026, allocations: 410.9 kB / 253.3 MB, free: 5.32 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009195/0.01118, allocations: 1.028 MB / 254.3 MB, free: 4.289 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004824/0.01166, allocations: 409.6 kB / 254.7 MB, free: 3.863 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009272/0.01259, allocations: 0.5419 MB / 255.3 MB, free: 3.32 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003214/0.01291, allocations: 279.1 kB / 255.5 MB, free: 3.047 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 8.017e-05/0.01299, allocations: 92 kB / 255.6 MB, free: 2.957 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002242/0.01322, allocations: 159.8 kB / 255.8 MB, free: 2.801 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001099/0.01333, allocations: 163.5 kB / 255.9 MB, free: 2.641 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001839/0.01351, allocations: 247.5 kB / 256.2 MB, free: 2.398 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005901/0.0141, allocations: 0.6498 MB / 256.8 MB, free: 1.746 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.639e-05/0.01412, allocations: 0 / 256.8 MB, free: 1.746 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.01412, allocations: 0 / 256.8 MB, free: 1.746 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.501e-05/0.01414, allocations: 4 kB / 256.8 MB, free: 1.742 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.001034/0.01518, allocations: 1.123 MB / 258 MB, free: 0.5898 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.364e-05/0.01521, allocations: 12.62 kB / 258 MB, free: 0.5781 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000221/0.01543, allocations: 206 kB / 258.2 MB, free: 368 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004629/0.01589, allocations: 389.1 kB / 258.6 MB, free: 15.95 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.55e-05/0.01593, allocations: 70.38 kB / 258.6 MB, free: 15.88 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.279e-05/0.016, allocations: 88.31 kB / 258.7 MB, free: 15.8 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005622/0.01657, allocations: 0.5984 MB / 259.3 MB, free: 15.16 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.366e-05/0.01659, allocations: 192 / 259.3 MB, free: 15.16 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.311e-05/0.01662, allocations: 36.38 kB / 259.3 MB, free: 15.12 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.587e-05/0.01664, allocations: 27.94 kB / 259.4 MB, free: 15.09 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002895/0.01693, allocations: 216.6 kB / 259.6 MB, free: 14.88 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00182/0.01875, allocations: 2.17 MB / 261.8 MB, free: 12.61 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002956/0.01904, allocations: 151.2 kB / 261.9 MB, free: 12.45 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.943e-05/0.01909, allocations: 48.84 kB / 262 MB, free: 12.4 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.047e-05/0.01916, allocations: 27.97 kB / 262 MB, free: 12.38 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.998e-05/0.01918, allocations: 38.5 kB / 262 MB, free: 12.33 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 2.064e-06/0.01918, allocations: 0 / 262 MB, free: 12.33 MB / 266.7 MB Notification: Performance of matching and sorting (n=35): time 0.001365/0.02055, allocations: 0.8011 MB / 262.8 MB, free: 11.47 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.632e-05/0.02058, allocations: 55.41 kB / 262.9 MB, free: 11.4 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001629/0.02074, allocations: 291.3 kB / 263.2 MB, free: 11.11 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.565e-05/0.02075, allocations: 33.7 kB / 263.2 MB, free: 11.07 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001334/0.02089, allocations: 388.3 kB / 263.6 MB, free: 10.68 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.124e-05/0.02095, allocations: 146.8 kB / 263.7 MB, free: 10.54 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.072e-05/0.02102, allocations: 86.12 kB / 263.8 MB, free: 10.45 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.383e-05/0.0211, allocations: 354.7 kB / 264.1 MB, free: 10.09 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.42e-05/0.02115, allocations: 40.92 kB / 264.2 MB, free: 10.05 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001072/0.02125, allocations: 186.1 kB / 264.4 MB, free: 9.809 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001967/0.02145, allocations: 284.7 kB / 264.6 MB, free: 9.469 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.02145, allocations: 0 / 264.6 MB, free: 9.469 MB / 266.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0002678/0.02172, allocations: 282 kB / 264.9 MB, free: 9.184 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.606e-05/0.02174, allocations: 16.08 kB / 264.9 MB, free: 9.168 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.02174, allocations: 4 kB / 264.9 MB, free: 9.164 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001092/0.02185, allocations: 28.84 kB / 265 MB, free: 9.133 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002513/0.02211, allocations: 131.8 kB / 265.1 MB, free: 9.004 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002255/0.02233, allocations: 0.5366 MB / 265.6 MB, free: 8.441 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001006/0.02243, allocations: 16 kB / 265.6 MB, free: 8.426 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.148e-05/0.02245, allocations: 16 kB / 265.7 MB, free: 8.41 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001215/0.02257, allocations: 148.5 kB / 265.8 MB, free: 8.254 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.682e-05/0.02261, allocations: 31.97 kB / 265.8 MB, free: 8.223 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002362/0.02285, allocations: 194.2 kB / 266 MB, free: 8.027 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.02285, allocations: 7.938 kB / 266 MB, free: 8.02 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.222e-06/0.02285, allocations: 0 / 266 MB, free: 8.02 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.02286, allocations: 3.984 kB / 266 MB, free: 8.016 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006311/0.02349, allocations: 0.5781 MB / 266.6 MB, free: 7.395 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.749e-06/0.02349, allocations: 3.984 kB / 266.6 MB, free: 7.391 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002503/0.02374, allocations: 95.33 kB / 266.7 MB, free: 7.301 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.312e-05/0.02378, allocations: 31.7 kB / 266.7 MB, free: 7.27 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.161e-05/0.02386, allocations: 32.81 kB / 266.8 MB, free: 7.234 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.849e-05/0.02388, allocations: 12 kB / 266.8 MB, free: 7.223 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001768/0.02405, allocations: 0.5211 MB / 267.3 MB, free: 6.676 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.698e-06/0.02406, allocations: 8 kB / 267.3 MB, free: 6.668 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002803/0.02434, allocations: 386.5 kB / 267.7 MB, free: 6.258 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3e-05/0.02437, allocations: 11.94 kB / 267.7 MB, free: 6.246 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.315e-05/0.02444, allocations: 8 kB / 267.7 MB, free: 6.238 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.484e-05/0.02448, allocations: 23.95 kB / 267.7 MB, free: 6.215 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.749e-05/0.02449, allocations: 12 kB / 267.8 MB, free: 6.203 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.038e-05/0.02456, allocations: 108.7 kB / 267.9 MB, free: 6.094 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02456, allocations: 0 / 267.9 MB, free: 6.094 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002865/0.02485, allocations: 119.9 kB / 268 MB, free: 5.977 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (directInertia.inertia.w,directInertia.torqueToAngle.phi,inertia2a.w,torqueToAngle2a.phi,inertia2b.w,torqueToAngle2b.phi,inertia3a.phi,inertia3a.w,inertia3b.phi,inertia3b.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001295/0.02498, allocations: 108.3 kB / 268.1 MB, free: 5.863 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002487/0.02523, allocations: 205.7 kB / 268.3 MB, free: 5.66 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.375e-05/0.02524, allocations: 4 kB / 268.3 MB, free: 5.656 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 9.669e-05/0.02534, allocations: 107 kB / 268.4 MB, free: 5.551 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002906/0.02563, allocations: 101.7 kB / 268.5 MB, free: 5.453 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005984/0.03161, allocations: 1.375 MB / 269.9 MB, free: 4.027 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001123/0.03173, allocations: 169.7 kB / 270 MB, free: 3.84 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001267/0.03185, allocations: 47.27 kB / 270.1 MB, free: 3.797 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000131/0.03198, allocations: 115.3 kB / 270.2 MB, free: 3.684 MB / 266.7 MB Notification: Performance of SimCode: time 1.112e-06/0.03199, allocations: 0 / 270.2 MB, free: 3.684 MB / 266.7 MB Notification: Performance of Templates: time 0.008346/0.04033, allocations: 4.172 MB / 274.4 MB, free: 15.59 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.5225371550768614]