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.001585/0.001585, allocations: 113 kB / 19.04 MB, free: 3.254 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.001784/0.001784, allocations: 197.9 kB / 22.22 MB, free: 72 kB / 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.425/1.425, allocations: 225.6 MB / 250.8 MB, free: 13.32 MB / 206.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 0.001985/0.001985, allocations: 55.92 kB / 368.7 MB, free: 10.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2782/0.2801, allocations: 52.13 MB / 420.9 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.006944/0.2871, allocations: 5.486 MB / 426.3 MB, free: 9.602 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004453/0.2915, allocations: 2.099 MB / 428.4 MB, free: 7.492 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007654/0.2923, allocations: 35.81 kB / 428.5 MB, free: 7.457 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005028/0.2928, allocations: 206.2 kB / 428.7 MB, free: 7.254 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004814/0.2933, allocations: 170.4 kB / 428.8 MB, free: 7.086 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001023/0.2943, allocations: 418.8 kB / 429.3 MB, free: 6.676 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001162/0.2955, allocations: 1.025 MB / 430.3 MB, free: 5.648 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006847/0.2962, allocations: 413.2 kB / 430.7 MB, free: 5.215 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004453/0.2966, allocations: 342.8 kB / 431 MB, free: 4.879 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004431/0.297, allocations: 366.3 kB / 431.4 MB, free: 4.52 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001208/0.2972, allocations: 92 kB / 431.5 MB, free: 4.43 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003173/0.2975, allocations: 155.9 kB / 431.6 MB, free: 4.277 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002156/0.2977, allocations: 199.4 kB / 431.8 MB, free: 4.082 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004346/0.2981, allocations: 437.9 kB / 432.2 MB, free: 3.652 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001334/0.2995, allocations: 1.18 MB / 433.4 MB, free: 2.477 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.2995, allocations: 0 / 433.4 MB, free: 2.477 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2995, allocations: 4 kB / 433.4 MB, free: 2.473 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.353e-05/0.2995, allocations: 0 / 433.4 MB, free: 2.473 MB / 334.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.001626/0.3011, allocations: 1.052 MB / 434.5 MB, free: 1.371 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.37e-05/0.3012, allocations: 12.03 kB / 434.5 MB, free: 1.359 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001668/0.3013, allocations: 92.38 kB / 434.6 MB, free: 1.27 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001002/0.3023, allocations: 0.5222 MB / 435.1 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.101e-05/0.3024, allocations: 66.38 kB / 435.2 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001449/0.3026, allocations: 88.33 kB / 435.3 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001597/0.3041, allocations: 0.8047 MB / 436.1 MB, free: 15.72 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.708e-05/0.3042, allocations: 11.95 kB / 436.1 MB, free: 15.71 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.022e-05/0.3043, allocations: 39.94 kB / 436.1 MB, free: 15.67 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.051e-05/0.3043, allocations: 20 kB / 436.1 MB, free: 15.65 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009761/0.3053, allocations: 0.4918 MB / 436.6 MB, free: 15.16 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003817/0.3091, allocations: 2.865 MB / 439.5 MB, free: 12.17 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006631/0.3097, allocations: 202.7 kB / 439.7 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002014/0.3099, allocations: 97.25 kB / 439.8 MB, free: 11.86 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003618/0.3103, allocations: 251.3 kB / 440 MB, free: 11.56 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.53e-05/0.3103, allocations: 38.55 kB / 440.1 MB, free: 11.51 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.703e-06/0.3103, allocations: 0 / 440.1 MB, free: 11.51 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.002522/0.3129, allocations: 1.274 MB / 441.3 MB, free: 10.14 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.471e-05/0.3129, allocations: 55.41 kB / 441.4 MB, free: 10.07 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003347/0.3132, allocations: 308.4 kB / 441.7 MB, free: 9.766 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.004e-05/0.3133, allocations: 33.7 kB / 441.7 MB, free: 9.727 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002751/0.3135, allocations: 407.8 kB / 442.1 MB, free: 9.324 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001138/0.3137, allocations: 142.8 kB / 442.3 MB, free: 9.184 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000129/0.3138, allocations: 90.2 kB / 442.3 MB, free: 9.09 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001976/0.314, allocations: 354.7 kB / 442.7 MB, free: 8.734 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002051/0.3142, allocations: 109.1 kB / 442.8 MB, free: 8.625 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003247/0.3145, allocations: 250.7 kB / 443 MB, free: 8.324 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005675/0.3151, allocations: 392.9 kB / 443.4 MB, free: 7.879 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.3151, allocations: 0 / 443.4 MB, free: 7.879 MB / 350.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007333/0.3158, allocations: 461.3 kB / 443.9 MB, free: 7.418 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.841e-05/0.3158, allocations: 8 kB / 443.9 MB, free: 7.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.568e-06/0.3158, allocations: 4 kB / 443.9 MB, free: 7.406 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001958/0.316, allocations: 36.84 kB / 443.9 MB, free: 7.367 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003514/0.3164, allocations: 108.4 kB / 444 MB, free: 7.262 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000672/0.3171, allocations: 0.5601 MB / 444.6 MB, free: 6.676 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001773/0.3172, allocations: 15.98 kB / 444.6 MB, free: 6.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.198e-05/0.3173, allocations: 24 kB / 444.6 MB, free: 6.637 MB / 350.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.0003004/0.3176, allocations: 213.7 kB / 444.8 MB, free: 6.418 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.492e-05/0.3176, allocations: 35.77 kB / 444.9 MB, free: 6.383 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000659/0.3183, allocations: 332.8 kB / 445.2 MB, free: 6.047 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.588e-06/0.3183, allocations: 4 kB / 445.2 MB, free: 6.043 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.3183, allocations: 0 / 445.2 MB, free: 6.043 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.047e-06/0.3183, allocations: 0 / 445.2 MB, free: 6.043 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001557/0.3199, allocations: 1.015 MB / 446.2 MB, free: 4.953 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.809e-06/0.3199, allocations: 4 kB / 446.2 MB, free: 4.949 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003643/0.3202, allocations: 79.89 kB / 446.3 MB, free: 4.871 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001307/0.3204, allocations: 32.78 kB / 446.3 MB, free: 4.836 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.178e-05/0.3204, allocations: 16 kB / 446.3 MB, free: 4.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004639/0.3209, allocations: 0.5486 MB / 446.9 MB, free: 4.246 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.3209, allocations: 0 / 446.9 MB, free: 4.246 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008514/0.3217, allocations: 0.5492 MB / 447.4 MB, free: 3.656 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.633e-05/0.3218, allocations: 104.9 kB / 447.5 MB, free: 3.535 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.937e-05/0.3219, allocations: 15.94 kB / 447.6 MB, free: 3.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001518/0.322, allocations: 11.98 kB / 447.6 MB, free: 3.508 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001274/0.3221, allocations: 28 kB / 447.6 MB, free: 3.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.801e-05/0.3222, allocations: 12 kB / 447.6 MB, free: 3.469 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002217/0.3224, allocations: 219 kB / 447.8 MB, free: 3.258 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3224, allocations: 0 / 447.8 MB, free: 3.258 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005172/0.3229, allocations: 119.9 kB / 447.9 MB, free: 3.141 MB / 350.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.0001918/0.3231, allocations: 119.4 kB / 448.1 MB, free: 3.016 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006261/0.3237, allocations: 296.4 kB / 448.4 MB, free: 2.727 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.3237, allocations: 3.938 kB / 448.4 MB, free: 2.723 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002693/0.324, allocations: 139.7 kB / 448.5 MB, free: 2.586 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004995/0.3245, allocations: 62.16 kB / 448.6 MB, free: 2.527 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002821/0.3273, allocations: 1.608 MB / 450.2 MB, free: 0.875 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006416/0.328, allocations: 0.9212 MB / 451.1 MB, free: 15.93 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000149/0.3281, allocations: 46.22 kB / 451.1 MB, free: 15.88 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.826e-05/0.3282, allocations: 31.42 kB / 451.2 MB, free: 15.85 MB / 366.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3282, allocations: 0 / 451.2 MB, free: 15.85 MB / 366.1 MB Notification: Performance of Templates: time 0.00995/0.3381, allocations: 4.037 MB / 455.2 MB, free: 11.84 MB / 366.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.482125294394791]