Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001414/0.001414, allocations: 107.6 kB / 21.18 MB, free: 452 kB / 14.72 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.002103/0.002103, allocations: 214.8 kB / 24.47 MB, free: 3.777 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.549/1.549, allocations: 207.7 MB / 235.3 MB, free: 9.801 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001794/0.001794, allocations: 55.92 kB / 347.7 MB, free: 9.387 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2603/0.2621, allocations: 49.15 MB / 396.8 MB, free: 9.395 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.005695/0.2678, allocations: 4.816 MB / 401.7 MB, free: 6.199 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003223/0.271, allocations: 2.029 MB / 403.7 MB, free: 4.77 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000601/0.2716, allocations: 48.84 kB / 403.7 MB, free: 4.746 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004437/0.272, allocations: 209.2 kB / 403.9 MB, free: 4.609 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004141/0.2725, allocations: 175.5 kB / 404.1 MB, free: 4.477 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008113/0.2733, allocations: 392.5 kB / 404.5 MB, free: 4.246 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008559/0.2741, allocations: 0.998 MB / 405.5 MB, free: 3.727 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005738/0.2747, allocations: 399.6 kB / 405.9 MB, free: 3.477 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004055/0.2751, allocations: 347.7 kB / 406.2 MB, free: 3.305 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003484/0.2754, allocations: 313.9 kB / 406.5 MB, free: 3.156 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000113/0.2756, allocations: 96.31 kB / 406.6 MB, free: 3.152 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002499/0.2758, allocations: 154.2 kB / 406.8 MB, free: 3.129 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001429/0.276, allocations: 204.2 kB / 407 MB, free: 2.988 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002624/0.2762, allocations: 345.5 kB / 407.3 MB, free: 2.793 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0011/0.2773, allocations: 1.185 MB / 408.5 MB, free: 2.32 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.2773, allocations: 0 / 408.5 MB, free: 2.32 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2773, allocations: 0 / 408.5 MB, free: 2.32 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.119e-05/0.2773, allocations: 0 / 408.5 MB, free: 2.32 MB / 318.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.001315/0.2787, allocations: 0.9849 MB / 409.5 MB, free: 1.633 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.703e-05/0.2787, allocations: 18.2 kB / 409.5 MB, free: 1.625 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001254/0.2788, allocations: 91.72 kB / 409.6 MB, free: 1.578 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007363/0.2796, allocations: 461.5 kB / 410 MB, free: 1.227 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.624e-05/0.2796, allocations: 63.97 kB / 410.1 MB, free: 1.195 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000112/0.2797, allocations: 87.64 kB / 410.2 MB, free: 1.164 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001202/0.2809, allocations: 0.8102 MB / 411 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.637e-05/0.281, allocations: 2.656 kB / 411 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.66e-05/0.281, allocations: 35.28 kB / 411 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.898e-05/0.281, allocations: 21.66 kB / 411.1 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008605/0.2819, allocations: 0.4946 MB / 411.6 MB, free: 384 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003156/0.285, allocations: 2.478 MB / 414 MB, free: 14.26 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005641/0.2856, allocations: 202.1 kB / 414.2 MB, free: 14.16 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001748/0.2858, allocations: 94.45 kB / 414.3 MB, free: 14.11 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001066/0.2859, allocations: 16.83 kB / 414.3 MB, free: 14.1 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.622e-05/0.2859, allocations: 39.91 kB / 414.4 MB, free: 14.05 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 1.903e-06/0.2859, allocations: 5.469 kB / 414.4 MB, free: 14.05 MB / 334.1 MB Notification: Performance of matching and sorting (n=35): time 0.002559/0.2885, allocations: 1.131 MB / 415.5 MB, free: 13.3 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.867e-05/0.2885, allocations: 56.03 kB / 415.6 MB, free: 13.24 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003855/0.2889, allocations: 305.5 kB / 415.9 MB, free: 13.03 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.358e-05/0.289, allocations: 31.64 kB / 415.9 MB, free: 13 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003187/0.2893, allocations: 418.7 kB / 416.3 MB, free: 12.63 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001327/0.2894, allocations: 137.8 kB / 416.4 MB, free: 12.51 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000131/0.2895, allocations: 84.44 kB / 416.5 MB, free: 12.45 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002068/0.2898, allocations: 355.3 kB / 416.9 MB, free: 12.1 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002134/0.29, allocations: 105.7 kB / 417 MB, free: 12.05 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003595/0.2903, allocations: 254.2 kB / 417.2 MB, free: 11.82 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005981/0.2909, allocations: 380.5 kB / 417.6 MB, free: 11.53 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.619e-06/0.2909, allocations: 5.844 kB / 417.6 MB, free: 11.52 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0008121/0.2917, allocations: 463.5 kB / 418 MB, free: 11.28 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.946e-05/0.2918, allocations: 6.781 kB / 418.1 MB, free: 11.28 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.109e-05/0.2918, allocations: 4.844 kB / 418.1 MB, free: 11.28 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002123/0.292, allocations: 41.59 kB / 418.1 MB, free: 11.26 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003704/0.2924, allocations: 111 kB / 418.2 MB, free: 11.23 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005083/0.2929, allocations: 0.5614 MB / 418.8 MB, free: 10.68 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001992/0.2931, allocations: 15.62 kB / 418.8 MB, free: 10.67 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.248e-05/0.2931, allocations: 21.92 kB / 418.8 MB, free: 10.67 MB / 334.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.0003442/0.2934, allocations: 226.3 kB / 419 MB, free: 10.48 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.599e-05/0.2935, allocations: 37.27 kB / 419.1 MB, free: 10.46 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006185/0.2941, allocations: 319.4 kB / 419.4 MB, free: 10.27 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.529e-06/0.2941, allocations: 2.594 kB / 419.4 MB, free: 10.27 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.237e-06/0.2941, allocations: 1.344 kB / 419.4 MB, free: 10.27 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.274e-06/0.2941, allocations: 3.984 kB / 419.4 MB, free: 10.27 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001399/0.2955, allocations: 0.8405 MB / 420.2 MB, free: 9.641 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/0.2956, allocations: 1.438 kB / 420.2 MB, free: 9.641 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003725/0.2959, allocations: 82.92 kB / 420.3 MB, free: 9.621 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001436/0.2961, allocations: 33.31 kB / 420.3 MB, free: 9.602 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.011e-05/0.2961, allocations: 13.19 kB / 420.4 MB, free: 9.594 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004197/0.2965, allocations: 0.5528 MB / 420.9 MB, free: 9.043 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.2965, allocations: 1.75 kB / 420.9 MB, free: 9.043 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008279/0.2973, allocations: 0.5508 MB / 421.5 MB, free: 8.66 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.647e-05/0.2974, allocations: 38.7 kB / 421.5 MB, free: 8.633 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.803e-05/0.2975, allocations: 12.11 kB / 421.5 MB, free: 8.625 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001533/0.2976, allocations: 6.75 kB / 421.5 MB, free: 8.621 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.581e-05/0.2977, allocations: 25.58 kB / 421.5 MB, free: 8.605 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.157e-05/0.2977, allocations: 10.47 kB / 421.5 MB, free: 8.605 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002256/0.2979, allocations: 209.6 kB / 421.8 MB, free: 8.465 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2979, allocations: 0 / 421.8 MB, free: 8.465 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000573/0.2985, allocations: 127 kB / 421.9 MB, free: 8.441 MB / 334.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.0001839/0.2987, allocations: 120.8 kB / 422 MB, free: 8.332 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006484/0.2993, allocations: 298.5 kB / 422.3 MB, free: 8.203 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.2993, allocations: 320 / 422.3 MB, free: 8.203 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002678/0.2996, allocations: 138.3 kB / 422.4 MB, free: 8.145 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005276/0.3001, allocations: 73.73 kB / 422.5 MB, free: 8.105 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002685/0.3028, allocations: 1.597 MB / 424.1 MB, free: 6.938 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003766/0.3032, allocations: 324.7 kB / 424.4 MB, free: 6.742 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001687/0.3034, allocations: 46.02 kB / 424.5 MB, free: 6.719 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.216e-05/0.3034, allocations: 35.08 kB / 424.5 MB, free: 6.707 MB / 334.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3034, allocations: 0 / 424.5 MB, free: 6.707 MB / 334.1 MB Notification: Performance of Templates: time 0.01046/0.3139, allocations: 4.39 MB / 428.9 MB, free: 2.434 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.852637132629752]