Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.005215/0.005215, allocations: 108.6 kB / 21.97 MB, free: 5.184 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001405/0.001405, allocations: 218.2 kB / 25.29 MB, free: 3.203 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.517/1.517, allocations: 230.6 MB / 259 MB, free: 8.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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-beta.om_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-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001943/0.001943, allocations: 68.55 kB / 379.8 MB, free: 2.664 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2531/0.255, allocations: 53.36 MB / 433.2 MB, free: 6.949 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.008208/0.2632, allocations: 5.493 MB / 438.7 MB, free: 1.438 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004588/0.2678, allocations: 2.173 MB / 440.8 MB, free: 15.25 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009867/0.2688, allocations: 47.62 kB / 440.9 MB, free: 15.21 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007167/0.2695, allocations: 206.2 kB / 441.1 MB, free: 15 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007791/0.2703, allocations: 178.4 kB / 441.3 MB, free: 14.83 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001239/0.2715, allocations: 422.8 kB / 441.7 MB, free: 14.41 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001375/0.2729, allocations: 1.009 MB / 442.7 MB, free: 13.4 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007001/0.2736, allocations: 421.6 kB / 443.1 MB, free: 12.96 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005186/0.2741, allocations: 346.9 kB / 443.4 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005001/0.2746, allocations: 374.3 kB / 443.8 MB, free: 12.26 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001192/0.2747, allocations: 92 kB / 443.9 MB, free: 12.17 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002958/0.275, allocations: 155.9 kB / 444 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002176/0.2753, allocations: 207.4 kB / 444.2 MB, free: 11.81 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004364/0.2757, allocations: 445.8 kB / 444.7 MB, free: 11.38 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001359/0.2771, allocations: 1.192 MB / 445.9 MB, free: 10.19 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.2771, allocations: 0 / 445.9 MB, free: 10.19 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.2771, allocations: 4 kB / 445.9 MB, free: 10.18 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.376e-05/0.2771, allocations: 0 / 445.9 MB, free: 10.18 MB / 350.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.001562/0.2786, allocations: 0.9804 MB / 446.8 MB, free: 9.172 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.651e-05/0.2787, allocations: 8.031 kB / 446.9 MB, free: 9.164 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002634/0.2789, allocations: 100.4 kB / 447 MB, free: 9.066 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008347/0.2798, allocations: 464.3 kB / 447.4 MB, free: 8.586 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.835e-05/0.2798, allocations: 62.38 kB / 447.5 MB, free: 8.523 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001255/0.28, allocations: 88.33 kB / 447.6 MB, free: 8.438 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001474/0.2814, allocations: 0.8047 MB / 448.4 MB, free: 7.598 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.556e-05/0.2815, allocations: 7.938 kB / 448.4 MB, free: 7.59 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.279e-05/0.2815, allocations: 36 kB / 448.4 MB, free: 7.555 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.201e-05/0.2816, allocations: 20 kB / 448.4 MB, free: 7.535 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001185/0.2827, allocations: 0.4996 MB / 448.9 MB, free: 7.031 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003539/0.2863, allocations: 2.765 MB / 451.7 MB, free: 4.152 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005775/0.2869, allocations: 204.4 kB / 451.9 MB, free: 3.941 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001873/0.287, allocations: 100.8 kB / 452 MB, free: 3.84 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001207/0.2872, allocations: 19.97 kB / 452 MB, free: 3.82 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.348e-05/0.2872, allocations: 39.06 kB / 452 MB, free: 3.773 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.944e-06/0.2872, allocations: 0 / 452 MB, free: 3.773 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.002421/0.2896, allocations: 1.124 MB / 453.2 MB, free: 2.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.483e-05/0.2897, allocations: 55.41 kB / 453.2 MB, free: 2.523 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003682/0.29, allocations: 313.7 kB / 453.5 MB, free: 2.211 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.58e-05/0.2901, allocations: 29.7 kB / 453.6 MB, free: 2.176 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003131/0.2904, allocations: 407.7 kB / 454 MB, free: 1.77 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001181/0.2905, allocations: 138.8 kB / 454.1 MB, free: 1.633 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001263/0.2906, allocations: 94.14 kB / 454.2 MB, free: 1.535 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001869/0.2908, allocations: 354.7 kB / 454.5 MB, free: 1.18 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002084/0.291, allocations: 105 kB / 454.6 MB, free: 1.078 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003533/0.2914, allocations: 254 kB / 454.9 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005766/0.2919, allocations: 392.7 kB / 455.3 MB, free: 328 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.2919, allocations: 4 kB / 455.3 MB, free: 324 kB / 350.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007891/0.2927, allocations: 461.7 kB / 455.7 MB, free: 15.86 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.994e-05/0.2928, allocations: 8 kB / 455.7 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.003e-05/0.2928, allocations: 4 kB / 455.7 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001996/0.293, allocations: 40.83 kB / 455.8 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003565/0.2933, allocations: 107.8 kB / 455.9 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00046/0.2938, allocations: 0.5525 MB / 456.4 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001867/0.294, allocations: 28.05 kB / 456.4 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.926e-05/0.294, allocations: 24 kB / 456.5 MB, free: 15.07 MB / 366.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.0003403/0.2944, allocations: 217.6 kB / 456.7 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.694e-05/0.2944, allocations: 35.77 kB / 456.7 MB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006694/0.2951, allocations: 329.5 kB / 457 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.604e-06/0.2951, allocations: 4 kB / 457 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.2951, allocations: 0 / 457 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.468e-06/0.2951, allocations: 0 / 457 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00154/0.2967, allocations: 0.9917 MB / 458 MB, free: 13.42 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.145e-06/0.2967, allocations: 0 / 458 MB, free: 13.42 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003604/0.297, allocations: 79.91 kB / 458.1 MB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001393/0.2972, allocations: 36.77 kB / 458.2 MB, free: 13.3 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.57e-05/0.2972, allocations: 12 kB / 458.2 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003876/0.2976, allocations: 0.5445 MB / 458.7 MB, free: 12.72 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.998e-06/0.2976, allocations: 4.031 kB / 458.7 MB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008364/0.2984, allocations: 0.5373 MB / 459.2 MB, free: 12.14 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.965e-05/0.2985, allocations: 39.75 kB / 459.3 MB, free: 12.1 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.508e-05/0.2985, allocations: 8.188 kB / 459.3 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001512/0.2987, allocations: 12 kB / 459.3 MB, free: 12.08 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.521e-05/0.2987, allocations: 31.92 kB / 459.3 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.488e-05/0.2988, allocations: 16 kB / 459.4 MB, free: 12.04 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002445/0.299, allocations: 215.1 kB / 459.6 MB, free: 11.83 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.299, allocations: 0 / 459.6 MB, free: 11.83 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005698/0.2996, allocations: 124 kB / 459.7 MB, free: 11.71 MB / 366.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.0001917/0.2998, allocations: 125.2 kB / 459.8 MB, free: 11.58 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000671/0.3004, allocations: 300.6 kB / 460.1 MB, free: 11.29 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.3004, allocations: 192 / 460.1 MB, free: 11.29 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002794/0.3007, allocations: 139.7 kB / 460.2 MB, free: 11.15 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005104/0.3012, allocations: 72.23 kB / 460.3 MB, free: 11.08 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002853/0.3041, allocations: 1.644 MB / 462 MB, free: 9.383 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006511/0.3047, allocations: 0.921 MB / 462.9 MB, free: 8.438 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.391e-05/0.3048, allocations: 39.42 kB / 462.9 MB, free: 8.398 MB / 366.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3048, allocations: 0 / 462.9 MB, free: 8.398 MB / 366.1 MB Notification: Performance of Templates: time 0.01496/0.3198, allocations: 9.879 MB / 472.8 MB, free: 14.53 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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: 7.854121530195698]