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.0008315/0.0008315, allocations: 84 kB / 21.43 MB, free: 3.133 MB / 18.57 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.00392/0.00392, allocations: 148.3 kB / 24.68 MB, free: 9.434 MB / 18.57 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 0.8399/0.8399, allocations: 173.4 MB / 201.2 MB, free: 9.422 MB / 186.7 MB " [Timeout remaining time 179] 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.352e-06/1.352e-06, allocations: 0 / 319.7 MB, free: 5.863 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.637e-05/1.772e-05, allocations: 10.16 kB / 319.7 MB, free: 5.852 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.003903/0.003921, allocations: 4.815 MB / 324.5 MB, free: 1.008 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001833/0.005754, allocations: 1.993 MB / 326.5 MB, free: 15 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002599/0.006014, allocations: 51.56 kB / 326.6 MB, free: 14.95 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003051/0.006319, allocations: 210.2 kB / 326.8 MB, free: 14.75 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002068/0.006526, allocations: 182.2 kB / 326.9 MB, free: 14.57 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005406/0.007066, allocations: 399 kB / 327.3 MB, free: 14.18 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005918/0.007658, allocations: 1.032 MB / 328.4 MB, free: 13.14 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004098/0.008068, allocations: 401.5 kB / 328.7 MB, free: 12.73 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003476/0.008416, allocations: 0.5224 MB / 329.3 MB, free: 12.2 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002248/0.00864, allocations: 255.2 kB / 329.5 MB, free: 11.95 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.774e-05/0.008708, allocations: 96 kB / 329.6 MB, free: 11.86 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001436/0.008852, allocations: 159.8 kB / 329.8 MB, free: 11.7 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001159/0.008968, allocations: 203.3 kB / 330 MB, free: 11.5 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001637/0.009131, allocations: 291.3 kB / 330.3 MB, free: 11.22 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007372/0.009869, allocations: 1.191 MB / 331.4 MB, free: 10.02 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.304e-06/0.009871, allocations: 0 / 331.4 MB, free: 10.02 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.009872, allocations: 0 / 331.4 MB, free: 10.02 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.565e-06/0.009879, allocations: 3.938 kB / 331.4 MB, free: 10.02 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.0008485/0.01073, allocations: 0.9649 MB / 332.4 MB, free: 9.02 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.23e-05/0.01076, allocations: 8.922 kB / 332.4 MB, free: 9.012 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.32e-05/0.01084, allocations: 92.38 kB / 332.5 MB, free: 8.922 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004778/0.01132, allocations: 467.5 kB / 333 MB, free: 8.438 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.309e-05/0.01135, allocations: 66.38 kB / 333 MB, free: 8.375 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.952e-05/0.01143, allocations: 88.33 kB / 333.1 MB, free: 8.289 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008178/0.01225, allocations: 0.8011 MB / 333.9 MB, free: 7.449 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.48e-05/0.01228, allocations: 16.02 kB / 333.9 MB, free: 7.434 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.084e-05/0.01232, allocations: 36.38 kB / 334 MB, free: 7.398 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.396e-05/0.01233, allocations: 23.94 kB / 334 MB, free: 7.375 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005866/0.01292, allocations: 0.4957 MB / 334.5 MB, free: 6.883 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001799/0.01472, allocations: 2.47 MB / 337 MB, free: 4.309 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003521/0.01507, allocations: 211.2 kB / 337.2 MB, free: 4.09 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001041/0.01517, allocations: 92.83 kB / 337.3 MB, free: 3.996 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.977e-05/0.01525, allocations: 15.98 kB / 337.3 MB, free: 3.98 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.877e-05/0.01527, allocations: 38.56 kB / 337.3 MB, free: 3.934 MB / 298.7 MB Notification: Performance of pre-optimization done (n=30): time 1.303e-06/0.01527, allocations: 4 kB / 337.3 MB, free: 3.93 MB / 298.7 MB Notification: Performance of matching and sorting (n=35): time 0.001388/0.01666, allocations: 1.119 MB / 338.4 MB, free: 2.75 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.96e-05/0.01669, allocations: 59.41 kB / 338.5 MB, free: 2.68 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001993/0.01689, allocations: 308.3 kB / 338.8 MB, free: 2.371 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.817e-05/0.01691, allocations: 37.7 kB / 338.8 MB, free: 2.328 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001558/0.01706, allocations: 399.8 kB / 339.2 MB, free: 1.934 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.845e-05/0.01713, allocations: 146.8 kB / 339.4 MB, free: 1.789 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.456e-05/0.01721, allocations: 86.14 kB / 339.4 MB, free: 1.699 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.768e-05/0.0173, allocations: 350.8 kB / 339.8 MB, free: 1.348 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001297/0.01743, allocations: 105 kB / 339.9 MB, free: 1.246 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001828/0.01762, allocations: 250 kB / 340.1 MB, free: 0.9375 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00033/0.01795, allocations: 396.7 kB / 340.5 MB, free: 500 kB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.686e-06/0.01795, allocations: 3.938 kB / 340.5 MB, free: 496 kB / 298.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0004456/0.0184, allocations: 465.7 kB / 341 MB, free: 20 kB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.464e-05/0.01841, allocations: 8 kB / 341 MB, free: 12 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.191e-06/0.01842, allocations: 4 kB / 341 MB, free: 8 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001432/0.01856, allocations: 32.92 kB / 341 MB, free: 15.97 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001926/0.01875, allocations: 111.8 kB / 341.1 MB, free: 15.86 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002639/0.01902, allocations: 0.5524 MB / 341.7 MB, free: 15.28 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.144e-05/0.01911, allocations: 19.94 kB / 341.7 MB, free: 15.26 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.814e-05/0.01914, allocations: 28.2 kB / 341.7 MB, free: 15.23 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.0001663/0.0193, allocations: 221.7 kB / 342 MB, free: 15.01 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.864e-05/0.01934, allocations: 39.75 kB / 342 MB, free: 14.97 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003757/0.01972, allocations: 321.1 kB / 342.3 MB, free: 14.64 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.584e-06/0.01972, allocations: 4 kB / 342.3 MB, free: 14.64 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/0.01972, allocations: 3.938 kB / 342.3 MB, free: 14.63 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.01973, allocations: 0 / 342.3 MB, free: 14.63 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007784/0.02051, allocations: 0.8635 MB / 343.2 MB, free: 13.72 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.375e-06/0.02051, allocations: 0 / 343.2 MB, free: 13.72 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001943/0.0207, allocations: 79.89 kB / 343.3 MB, free: 13.64 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.712e-05/0.02078, allocations: 36.88 kB / 343.3 MB, free: 13.6 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.548e-05/0.0208, allocations: 8 kB / 343.3 MB, free: 13.59 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002107/0.02101, allocations: 0.5445 MB / 343.8 MB, free: 13.02 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.02101, allocations: 8.188 kB / 343.8 MB, free: 13.02 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004648/0.02147, allocations: 0.5487 MB / 344.4 MB, free: 12.43 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.937e-05/0.0215, allocations: 35.77 kB / 344.4 MB, free: 12.39 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.798e-05/0.02153, allocations: 11.94 kB / 344.4 MB, free: 12.38 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.504e-05/0.02161, allocations: 8 kB / 344.5 MB, free: 12.38 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.803e-05/0.02165, allocations: 27.98 kB / 344.5 MB, free: 12.35 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.373e-05/0.02166, allocations: 8 kB / 344.5 MB, free: 12.34 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001258/0.02178, allocations: 211.1 kB / 344.7 MB, free: 12.14 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02178, allocations: 0 / 344.7 MB, free: 12.14 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002872/0.02207, allocations: 131.9 kB / 344.8 MB, free: 12.01 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.0001291/0.0222, allocations: 114.4 kB / 344.9 MB, free: 11.89 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003662/0.02257, allocations: 288.5 kB / 345.2 MB, free: 11.61 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.02257, allocations: 256 / 345.2 MB, free: 11.61 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001436/0.02271, allocations: 131.8 kB / 345.3 MB, free: 11.48 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003075/0.02302, allocations: 61.41 kB / 345.4 MB, free: 11.42 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001367/0.02439, allocations: 1.431 MB / 346.8 MB, free: 9.938 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000203/0.02459, allocations: 329.6 kB / 347.2 MB, free: 9.59 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.985e-05/0.02465, allocations: 40.67 kB / 347.2 MB, free: 9.547 MB / 314.7 MB Notification: Performance of SimCode: time 6.21e-07/0.02465, allocations: 0 / 347.2 MB, free: 9.547 MB / 314.7 MB Notification: Performance of Templates: time 0.007321/0.03197, allocations: 10.19 MB / 357.4 MB, free: 15.36 MB / 330.7 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.689862988889217]