Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0007823/0.0007823, allocations: 87.62 kB / 21.44 MB, free: 3.129 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.003658/0.003658, allocations: 163.2 kB / 24.7 MB, free: 8.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8427/0.8427, allocations: 177.1 MB / 205 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_4.1.0_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_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.001e-06/1.001e-06, allocations: 0 / 325.8 MB, free: 15.45 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.277e-05/1.378e-05, allocations: 2.281 kB / 325.8 MB, free: 15.45 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.003704/0.003718, allocations: 4.846 MB / 330.7 MB, free: 10.57 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00198/0.005698, allocations: 2.067 MB / 332.7 MB, free: 8.496 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002494/0.005947, allocations: 51.56 kB / 332.8 MB, free: 8.445 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002926/0.00624, allocations: 210.1 kB / 333 MB, free: 8.238 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001993/0.006439, allocations: 190.2 kB / 333.2 MB, free: 8.051 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005359/0.006975, allocations: 406.9 kB / 333.6 MB, free: 7.652 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005684/0.007544, allocations: 1.044 MB / 334.6 MB, free: 6.602 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003884/0.007932, allocations: 389.6 kB / 335 MB, free: 6.203 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000376/0.008308, allocations: 0.5263 MB / 335.5 MB, free: 5.676 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002165/0.008525, allocations: 259.2 kB / 335.8 MB, free: 5.422 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.623e-05/0.008591, allocations: 92 kB / 335.9 MB, free: 5.332 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001446/0.008735, allocations: 155.8 kB / 336 MB, free: 5.18 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001093/0.008845, allocations: 215.3 kB / 336.2 MB, free: 4.969 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000156/0.009001, allocations: 291.3 kB / 336.5 MB, free: 4.684 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007006/0.009701, allocations: 1.199 MB / 337.7 MB, free: 3.48 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.994e-06/0.009703, allocations: 4 kB / 337.7 MB, free: 3.477 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.009704, allocations: 0 / 337.7 MB, free: 3.477 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.173e-06/0.009711, allocations: 0 / 337.7 MB, free: 3.477 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: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.0008471/0.01056, allocations: 0.9687 MB / 338.7 MB, free: 2.473 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.053e-05/0.01059, allocations: 8.031 kB / 338.7 MB, free: 2.465 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000146/0.01074, allocations: 104.4 kB / 338.8 MB, free: 2.363 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006918/0.01143, allocations: 467.5 kB / 339.3 MB, free: 1.875 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.041e-05/0.01146, allocations: 58.38 kB / 339.3 MB, free: 1.82 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.723e-05/0.01153, allocations: 96.31 kB / 339.4 MB, free: 1.727 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007773/0.01231, allocations: 0.7933 MB / 340.2 MB, free: 0.8906 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.39e-05/0.01234, allocations: 8.172 kB / 340.2 MB, free: 0.8828 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.263e-05/0.01238, allocations: 36.38 kB / 340.2 MB, free: 0.8477 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.178e-05/0.01239, allocations: 23.94 kB / 340.3 MB, free: 0.8242 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005604/0.01295, allocations: 499.6 kB / 340.8 MB, free: 344 kB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001711/0.01466, allocations: 2.481 MB / 343.2 MB, free: 13.75 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003336/0.015, allocations: 211.1 kB / 343.4 MB, free: 13.53 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.915e-05/0.01509, allocations: 92.81 kB / 343.5 MB, free: 13.44 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.097e-05/0.01517, allocations: 19.98 kB / 343.6 MB, free: 13.42 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.625e-05/0.01518, allocations: 34.56 kB / 343.6 MB, free: 13.38 MB / 314.7 MB Notification: Performance of pre-optimization done (n=30): time 1.282e-06/0.01518, allocations: 0 / 343.6 MB, free: 13.38 MB / 314.7 MB Notification: Performance of matching and sorting (n=35): time 0.00131/0.01649, allocations: 1.125 MB / 344.7 MB, free: 12.19 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.794e-05/0.01652, allocations: 55.41 kB / 344.8 MB, free: 12.12 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001994/0.01672, allocations: 313.6 kB / 345.1 MB, free: 11.81 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.515e-05/0.01673, allocations: 29.7 kB / 345.1 MB, free: 11.78 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001461/0.01688, allocations: 411.7 kB / 345.5 MB, free: 11.37 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.161e-05/0.01694, allocations: 142.8 kB / 345.6 MB, free: 11.23 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.153e-05/0.01701, allocations: 90.16 kB / 345.7 MB, free: 11.14 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.138e-05/0.0171, allocations: 350.8 kB / 346.1 MB, free: 10.79 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001189/0.01721, allocations: 112.9 kB / 346.2 MB, free: 10.68 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004066/0.01762, allocations: 249.9 kB / 346.4 MB, free: 10.37 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003179/0.01794, allocations: 392.9 kB / 346.8 MB, free: 9.922 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.01794, allocations: 3.938 kB / 346.8 MB, free: 9.918 MB / 314.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0004503/0.01839, allocations: 461.8 kB / 347.3 MB, free: 9.457 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.343e-05/0.01841, allocations: 4 kB / 347.3 MB, free: 9.453 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.01841, allocations: 12 kB / 347.3 MB, free: 9.441 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001219/0.01853, allocations: 36.78 kB / 347.3 MB, free: 9.402 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001839/0.01872, allocations: 111.8 kB / 347.4 MB, free: 9.293 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002337/0.01895, allocations: 0.5562 MB / 348 MB, free: 8.711 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.925e-05/0.01904, allocations: 19.94 kB / 348 MB, free: 8.691 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.405e-05/0.01907, allocations: 20 kB / 348 MB, free: 8.672 MB / 314.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.0001603/0.01923, allocations: 221.8 kB / 348.2 MB, free: 8.445 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.785e-05/0.01926, allocations: 39.77 kB / 348.3 MB, free: 8.406 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003514/0.01962, allocations: 326.3 kB / 348.6 MB, free: 8.082 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.01962, allocations: 4 kB / 348.6 MB, free: 8.078 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/0.01962, allocations: 3.938 kB / 348.6 MB, free: 8.074 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.01963, allocations: 3.984 kB / 348.6 MB, free: 8.07 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00074/0.02037, allocations: 0.8441 MB / 349.5 MB, free: 7.172 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.02037, allocations: 7.938 kB / 349.5 MB, free: 7.164 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000188/0.02056, allocations: 79.89 kB / 349.5 MB, free: 7.086 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.82e-05/0.02063, allocations: 32.88 kB / 349.6 MB, free: 7.051 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.793e-05/0.02064, allocations: 15.98 kB / 349.6 MB, free: 7.035 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000186/0.02083, allocations: 0.5445 MB / 350.1 MB, free: 6.465 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.02083, allocations: 11.95 kB / 350.1 MB, free: 6.453 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004397/0.02127, allocations: 0.537 MB / 350.7 MB, free: 5.879 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.957e-05/0.0213, allocations: 35.77 kB / 350.7 MB, free: 5.844 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.963e-05/0.02133, allocations: 19.92 kB / 350.7 MB, free: 5.824 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.382e-05/0.0214, allocations: 8 kB / 350.7 MB, free: 5.816 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.431e-05/0.02144, allocations: 19.95 kB / 350.8 MB, free: 5.797 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.223e-05/0.02145, allocations: 12 kB / 350.8 MB, free: 5.785 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001236/0.02157, allocations: 215.2 kB / 351 MB, free: 5.578 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02158, allocations: 0 / 351 MB, free: 5.578 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002726/0.02185, allocations: 120 kB / 351.1 MB, free: 5.461 MB / 314.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.0001208/0.02197, allocations: 135.1 kB / 351.2 MB, free: 5.316 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003588/0.02233, allocations: 284.8 kB / 351.5 MB, free: 5.039 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.452e-06/0.02233, allocations: 0 / 351.5 MB, free: 5.039 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000141/0.02247, allocations: 152.2 kB / 351.7 MB, free: 4.891 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002994/0.02277, allocations: 63.94 kB / 351.7 MB, free: 4.832 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001308/0.02408, allocations: 1.418 MB / 353.1 MB, free: 3.363 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004481/0.02453, allocations: 333.6 kB / 353.5 MB, free: 3.016 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.328e-05/0.02458, allocations: 32.5 kB / 353.5 MB, free: 2.984 MB / 314.7 MB Notification: Performance of SimCode: time 5.81e-07/0.02458, allocations: 0 / 353.5 MB, free: 2.984 MB / 314.7 MB Notification: Performance of Templates: time 0.007267/0.03185, allocations: 10.21 MB / 363.7 MB, free: 8.781 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.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: 4.6729437075555325]