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.001115/0.001115, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001687/0.002802, allocations: 457.8 kB / 10.45 MB, free: 244 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.001124/0.001124, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001259/0.002383, allocations: 475.6 kB / 11.82 MB, free: 2.348 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.9725/0.9725, allocations: 177.5 MB / 190 MB, free: 4.738 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1128/1.085, allocations: 53.87 MB / 243.9 MB, free: 14.79 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.212e-06/1.212e-06, allocations: 0 / 245.2 MB, free: 13.51 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.032e-05/1.153e-05, allocations: 2.312 kB / 245.2 MB, free: 13.51 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.004463/0.004474, allocations: 5.272 MB / 250.5 MB, free: 8.211 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002761/0.007235, allocations: 2.172 MB / 252.7 MB, free: 6.027 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004476/0.007683, allocations: 51.56 kB / 252.7 MB, free: 5.977 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002969/0.00798, allocations: 210.1 kB / 252.9 MB, free: 5.77 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002886/0.008268, allocations: 194.2 kB / 253.1 MB, free: 5.578 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005503/0.008818, allocations: 402.9 kB / 253.5 MB, free: 5.184 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006471/0.009466, allocations: 1.036 MB / 254.5 MB, free: 4.145 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004014/0.009867, allocations: 401.6 kB / 254.9 MB, free: 3.727 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004478/0.01031, allocations: 0.5497 MB / 255.5 MB, free: 3.176 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002451/0.01056, allocations: 271.2 kB / 255.7 MB, free: 2.91 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 7.428e-05/0.01063, allocations: 92 kB / 255.8 MB, free: 2.82 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001875/0.01082, allocations: 163.8 kB / 256 MB, free: 2.66 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001027/0.01092, allocations: 167.5 kB / 256.1 MB, free: 2.496 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001647/0.01109, allocations: 255.5 kB / 256.4 MB, free: 2.246 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007266/0.01182, allocations: 0.6381 MB / 257 MB, free: 1.605 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.006e-05/0.01183, allocations: 0 / 257 MB, free: 1.605 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.91e-07/0.01183, allocations: 0 / 257 MB, free: 1.605 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.175e-05/0.01184, allocations: 0 / 257 MB, free: 1.605 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.0008979/0.01274, allocations: 1.131 MB / 258.2 MB, free: 456 kB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.822e-05/0.01276, allocations: 8.625 kB / 258.2 MB, free: 448 kB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000207/0.01297, allocations: 217.9 kB / 258.4 MB, free: 212 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004022/0.01337, allocations: 389 kB / 258.8 MB, free: 15.8 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.071e-05/0.0134, allocations: 62.38 kB / 258.8 MB, free: 15.74 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.153e-05/0.01348, allocations: 92.31 kB / 258.9 MB, free: 15.65 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005222/0.014, allocations: 0.5907 MB / 259.5 MB, free: 15.02 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.492e-05/0.01402, allocations: 16.09 kB / 259.5 MB, free: 15 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.137e-05/0.01405, allocations: 32.38 kB / 259.6 MB, free: 14.97 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.518e-05/0.01407, allocations: 27.92 kB / 259.6 MB, free: 14.95 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002721/0.01434, allocations: 216.6 kB / 259.8 MB, free: 14.73 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001537/0.01588, allocations: 2.178 MB / 262 MB, free: 12.46 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002525/0.01613, allocations: 147.2 kB / 262.1 MB, free: 12.3 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.973e-05/0.01618, allocations: 48.83 kB / 262.2 MB, free: 12.25 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.984e-05/0.01624, allocations: 16 kB / 262.2 MB, free: 12.23 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.033e-05/0.01626, allocations: 38.55 kB / 262.2 MB, free: 12.19 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 1.252e-06/0.01626, allocations: 0 / 262.2 MB, free: 12.19 MB / 266.7 MB Notification: Performance of matching and sorting (n=35): time 0.00107/0.01733, allocations: 0.8353 MB / 263.1 MB, free: 11.29 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.326e-05/0.01736, allocations: 55.41 kB / 263.1 MB, free: 11.23 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001514/0.01751, allocations: 299.2 kB / 263.4 MB, free: 10.92 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.439e-05/0.01752, allocations: 33.7 kB / 263.4 MB, free: 10.88 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003559/0.01788, allocations: 388.3 kB / 263.8 MB, free: 10.5 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.491e-05/0.01794, allocations: 142.8 kB / 264 MB, free: 10.36 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.885e-05/0.01801, allocations: 90.09 kB / 264 MB, free: 10.27 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.839e-05/0.01809, allocations: 350.7 kB / 264.4 MB, free: 9.914 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.186e-05/0.01813, allocations: 36.98 kB / 264.4 MB, free: 9.879 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001044/0.01824, allocations: 194 kB / 264.6 MB, free: 9.625 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001889/0.01842, allocations: 284.8 kB / 264.9 MB, free: 9.285 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.886e-06/0.01843, allocations: 7.938 kB / 264.9 MB, free: 9.277 MB / 266.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0002397/0.01867, allocations: 293.9 kB / 265.2 MB, free: 8.98 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.261e-05/0.01868, allocations: 8 kB / 265.2 MB, free: 8.973 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.071e-06/0.01869, allocations: 4 kB / 265.2 MB, free: 8.969 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.818e-05/0.01878, allocations: 32.84 kB / 265.2 MB, free: 8.934 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000233/0.01902, allocations: 131.8 kB / 265.4 MB, free: 8.805 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000199/0.01922, allocations: 0.5288 MB / 265.9 MB, free: 8.25 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.272e-05/0.0193, allocations: 16 kB / 265.9 MB, free: 8.234 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.144e-05/0.01932, allocations: 19.98 kB / 265.9 MB, free: 8.215 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.0001003/0.01942, allocations: 140.7 kB / 266.1 MB, free: 8.066 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.392e-05/0.01945, allocations: 35.91 kB / 266.1 MB, free: 8.031 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002115/0.01967, allocations: 194.4 kB / 266.3 MB, free: 7.832 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.938e-06/0.01967, allocations: 7.938 kB / 266.3 MB, free: 7.824 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.372e-06/0.01967, allocations: 0 / 266.3 MB, free: 7.824 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.01968, allocations: 3.984 kB / 266.3 MB, free: 7.82 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005281/0.0202, allocations: 0.5702 MB / 266.9 MB, free: 7.207 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.02021, allocations: 0 / 266.9 MB, free: 7.207 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002098/0.02042, allocations: 102.5 kB / 267 MB, free: 7.113 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.458e-05/0.02044, allocations: 35.75 kB / 267 MB, free: 7.078 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.54e-05/0.02051, allocations: 24.89 kB / 267 MB, free: 7.051 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.473e-05/0.02052, allocations: 11.98 kB / 267 MB, free: 7.039 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001617/0.02068, allocations: 0.5327 MB / 267.6 MB, free: 6.48 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.02068, allocations: 0 / 267.6 MB, free: 6.48 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002542/0.02094, allocations: 382.6 kB / 267.9 MB, free: 6.07 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.618e-05/0.02096, allocations: 12 kB / 268 MB, free: 6.059 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.011e-05/0.02103, allocations: 8 kB / 268 MB, free: 6.051 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.446e-05/0.02107, allocations: 27.89 kB / 268 MB, free: 6.023 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.068e-05/0.02108, allocations: 8 kB / 268 MB, free: 6.016 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.882e-05/0.02115, allocations: 108.7 kB / 268.1 MB, free: 5.906 MB / 266.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.02115, allocations: 0 / 268.1 MB, free: 5.906 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000246/0.02139, allocations: 123.9 kB / 268.2 MB, free: 5.785 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.0001175/0.02151, allocations: 104.3 kB / 268.3 MB, free: 5.676 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002221/0.02173, allocations: 207.1 kB / 268.5 MB, free: 5.473 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.159e-05/0.02175, allocations: 4 kB / 268.5 MB, free: 5.469 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001214/0.02187, allocations: 130.5 kB / 268.7 MB, free: 5.34 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004256/0.02229, allocations: 0.6721 MB / 269.3 MB, free: 4.547 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005482/0.02777, allocations: 1.361 MB / 270.7 MB, free: 3.137 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001312/0.02791, allocations: 165.7 kB / 270.9 MB, free: 2.949 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001352/0.02804, allocations: 51.36 kB / 270.9 MB, free: 2.895 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001522/0.02819, allocations: 119.3 kB / 271 MB, free: 2.777 MB / 266.7 MB Notification: Performance of SimCode: time 9.62e-07/0.02819, allocations: 4 kB / 271 MB, free: 2.773 MB / 266.7 MB Notification: Performance of Templates: time 0.01794/0.04614, allocations: 3.915 MB / 274.9 MB, free: 14.95 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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.5492322091013193]