Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001321/0.001321, allocations: 80.88 kB / 20.68 MB, free: 1.023 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001347/0.001347, allocations: 146 kB / 23.94 MB, free: 4.156 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.408/1.408, allocations: 173.4 MB / 200.4 MB, free: 12.86 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.593e-06/1.593e-06, allocations: 0 / 318.9 MB, free: 3.535 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.658e-05/2.817e-05, allocations: 2.281 kB / 318.9 MB, free: 3.531 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.005559/0.005587, allocations: 4.82 MB / 323.7 MB, free: 344 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004181/0.009769, allocations: 1.985 MB / 325.7 MB, free: 14.94 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009075/0.01068, allocations: 52.31 kB / 325.8 MB, free: 14.91 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005986/0.01127, allocations: 208.4 kB / 326 MB, free: 14.77 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005371/0.01181, allocations: 190.2 kB / 326.2 MB, free: 14.63 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001051/0.01286, allocations: 392.1 kB / 326.5 MB, free: 14.4 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001269/0.01413, allocations: 1.042 MB / 327.6 MB, free: 13.83 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006717/0.0148, allocations: 395.1 kB / 328 MB, free: 13.6 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007211/0.01552, allocations: 0.5263 MB / 328.5 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004085/0.01593, allocations: 255.9 kB / 328.8 MB, free: 13.27 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001181/0.01605, allocations: 92.41 kB / 328.8 MB, free: 13.27 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002885/0.01634, allocations: 149 kB / 329 MB, free: 13.25 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002251/0.01657, allocations: 213.6 kB / 329.2 MB, free: 13.1 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003498/0.01691, allocations: 294.7 kB / 329.5 MB, free: 12.95 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001482/0.0184, allocations: 1.188 MB / 330.7 MB, free: 12.49 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.0184, allocations: 5.75 kB / 330.7 MB, free: 12.48 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.0184, allocations: 0 / 330.7 MB, free: 12.48 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.38e-05/0.01843, allocations: 0 / 330.7 MB, free: 12.48 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: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.001667/0.02009, allocations: 0.9712 MB / 331.6 MB, free: 11.74 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.473e-05/0.02013, allocations: 14.73 kB / 331.7 MB, free: 11.73 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001588/0.02029, allocations: 90.94 kB / 331.8 MB, free: 11.69 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008463/0.02113, allocations: 461.1 kB / 332.2 MB, free: 11.3 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.127e-05/0.02118, allocations: 63.62 kB / 332.3 MB, free: 11.28 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001297/0.02131, allocations: 92.33 kB / 332.4 MB, free: 11.24 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001609/0.02292, allocations: 0.8009 MB / 333.2 MB, free: 10.73 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.972e-05/0.02296, allocations: 12.02 kB / 333.2 MB, free: 10.72 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.214e-05/0.02303, allocations: 35.25 kB / 333.2 MB, free: 10.69 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.286e-05/0.02306, allocations: 24.81 kB / 333.2 MB, free: 10.69 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001049/0.02411, allocations: 0.4916 MB / 333.7 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003449/0.02755, allocations: 2.475 MB / 336.2 MB, free: 8.348 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006024/0.02816, allocations: 202.4 kB / 336.4 MB, free: 8.238 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001941/0.02835, allocations: 98.06 kB / 336.5 MB, free: 8.184 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000125/0.02848, allocations: 20.42 kB / 336.5 MB, free: 8.176 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.433e-05/0.02851, allocations: 32.97 kB / 336.5 MB, free: 8.137 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 2.886e-06/0.02851, allocations: 0 / 336.5 MB, free: 8.137 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.002672/0.03119, allocations: 1.127 MB / 337.7 MB, free: 7.391 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.507e-05/0.03123, allocations: 55.53 kB / 337.7 MB, free: 7.328 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003756/0.03161, allocations: 318.8 kB / 338 MB, free: 7.113 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.329e-05/0.03164, allocations: 29.7 kB / 338.1 MB, free: 7.078 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003044/0.03194, allocations: 405.9 kB / 338.5 MB, free: 6.723 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001189/0.03206, allocations: 139.1 kB / 338.6 MB, free: 6.602 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001355/0.0322, allocations: 95.55 kB / 338.7 MB, free: 6.535 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001948/0.03239, allocations: 347.6 kB / 339 MB, free: 6.195 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002196/0.03261, allocations: 105.4 kB / 339.1 MB, free: 6.148 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003553/0.03297, allocations: 253.2 kB / 339.4 MB, free: 5.918 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006397/0.03361, allocations: 394.3 kB / 339.8 MB, free: 5.609 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.57e-06/0.03361, allocations: 9.344 kB / 339.8 MB, free: 5.602 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0008245/0.03444, allocations: 463.2 kB / 340.2 MB, free: 5.359 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.049e-05/0.03446, allocations: 8.219 kB / 340.2 MB, free: 5.359 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.909e-06/0.03447, allocations: 3.406 kB / 340.2 MB, free: 5.359 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002759/0.03474, allocations: 38.7 kB / 340.3 MB, free: 5.34 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003651/0.03511, allocations: 111 kB / 340.4 MB, free: 5.316 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004729/0.03558, allocations: 0.5535 MB / 340.9 MB, free: 4.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002278/0.03581, allocations: 19.06 kB / 341 MB, free: 4.758 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.1e-05/0.03585, allocations: 21.38 kB / 341 MB, free: 4.754 MB / 302.1 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.0003526/0.0362, allocations: 219.4 kB / 341.2 MB, free: 4.57 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.2e-05/0.03628, allocations: 40.52 kB / 341.2 MB, free: 4.547 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007273/0.037, allocations: 318.9 kB / 341.5 MB, free: 4.355 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.841e-06/0.03701, allocations: 3.656 kB / 341.5 MB, free: 4.355 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.803e-06/0.03702, allocations: 7.875 kB / 341.5 MB, free: 4.348 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.915e-06/0.03702, allocations: 3.984 kB / 341.6 MB, free: 4.344 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001502/0.03853, allocations: 0.8622 MB / 342.4 MB, free: 3.566 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.093e-06/0.03853, allocations: 4 kB / 342.4 MB, free: 3.562 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003935/0.03893, allocations: 75.91 kB / 342.5 MB, free: 3.488 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00015/0.03908, allocations: 28.84 kB / 342.5 MB, free: 3.457 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.157e-05/0.03911, allocations: 19.98 kB / 342.5 MB, free: 3.438 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000417/0.03952, allocations: 0.5446 MB / 343.1 MB, free: 2.863 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/0.03953, allocations: 3.938 kB / 343.1 MB, free: 2.859 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001211/0.04074, allocations: 0.549 MB / 343.6 MB, free: 2.273 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.557e-05/0.04084, allocations: 35.75 kB / 343.7 MB, free: 2.238 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.022e-05/0.04092, allocations: 15.94 kB / 343.7 MB, free: 2.223 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002732/0.04119, allocations: 8 kB / 343.7 MB, free: 2.215 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.379e-05/0.04128, allocations: 27.98 kB / 343.7 MB, free: 2.188 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.628e-05/0.04132, allocations: 12 kB / 343.7 MB, free: 2.176 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003564/0.04168, allocations: 211.1 kB / 343.9 MB, free: 1.973 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.04168, allocations: 0 / 343.9 MB, free: 1.973 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.00076/0.04244, allocations: 119.9 kB / 344.1 MB, free: 1.855 MB / 302.1 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.0002791/0.04272, allocations: 123.2 kB / 344.2 MB, free: 1.723 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009711/0.04369, allocations: 284.7 kB / 344.5 MB, free: 1.445 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.04369, allocations: 0 / 344.5 MB, free: 1.445 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004937/0.04418, allocations: 132.2 kB / 344.6 MB, free: 1.316 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008886/0.04507, allocations: 77.08 kB / 344.7 MB, free: 1.246 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003436/0.04851, allocations: 1.374 MB / 346 MB, free: 15.83 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005338/0.04904, allocations: 329.6 kB / 346.4 MB, free: 15.48 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002344/0.04928, allocations: 51.31 kB / 346.4 MB, free: 15.43 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000111/0.04939, allocations: 32.5 kB / 346.4 MB, free: 15.39 MB / 318.1 MB Notification: Performance of SimCode: time 7.31e-07/0.04939, allocations: 0 / 346.4 MB, free: 15.39 MB / 318.1 MB Notification: Performance of Templates: time 0.01417/0.06356, allocations: 3.511 MB / 349.9 MB, free: 11.95 MB / 318.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.303875844925642]