Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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=2000,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_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") translateModel(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,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_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001647/0.001658, allocations: 113.7 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002193/0.002192, allocations: 202.8 kB / 19.4 MB, free: 3.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.689/1.689, allocations: 227.4 MB / 247.6 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001218, allocations: 67.88 kB / 359.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2798/0.281, allocations: 50.54 MB / 409.9 MB, free: 1.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.00675/0.2878, allocations: 5.441 MB / 415.4 MB, free: 12.13 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003729/0.2916, allocations: 2.141 MB / 417.5 MB, free: 9.977 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005693/0.2922, allocations: 39.81 kB / 417.5 MB, free: 9.938 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004842/0.2927, allocations: 206.2 kB / 417.7 MB, free: 9.734 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000366/0.2931, allocations: 170.4 kB / 417.9 MB, free: 9.566 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008778/0.294, allocations: 395.1 kB / 418.3 MB, free: 9.18 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009455/0.2949, allocations: 1.025 MB / 419.3 MB, free: 8.148 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007805/0.2957, allocations: 0.6065 MB / 419.9 MB, free: 7.512 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004223/0.2961, allocations: 346.8 kB / 420.3 MB, free: 7.172 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004085/0.2965, allocations: 362.3 kB / 420.6 MB, free: 6.816 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001033/0.2967, allocations: 92 kB / 420.7 MB, free: 6.727 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002548/0.2969, allocations: 155.9 kB / 420.9 MB, free: 6.574 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001843/0.2971, allocations: 207.4 kB / 421.1 MB, free: 6.371 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003766/0.2975, allocations: 430 kB / 421.5 MB, free: 5.949 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001093/0.2986, allocations: 1.192 MB / 422.7 MB, free: 4.758 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.132e-06/0.2986, allocations: 4 kB / 422.7 MB, free: 4.754 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.654e-06/0.2986, allocations: 0 / 422.7 MB, free: 4.754 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.202e-05/0.2986, allocations: 0 / 422.7 MB, free: 4.754 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.001497/0.3001, allocations: 1.033 MB / 423.7 MB, free: 3.672 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.3002, allocations: 8.031 kB / 423.7 MB, free: 3.664 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002532/0.3005, allocations: 107.8 kB / 423.8 MB, free: 3.559 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007964/0.3013, allocations: 0.5143 MB / 424.3 MB, free: 3.004 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.753e-05/0.3013, allocations: 62.38 kB / 424.4 MB, free: 2.941 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001153/0.3015, allocations: 96.27 kB / 424.5 MB, free: 2.848 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001325/0.3028, allocations: 0.8008 MB / 425.3 MB, free: 2.012 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.301e-05/0.3028, allocations: 11.98 kB / 425.3 MB, free: 2 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.867e-05/0.3029, allocations: 32 kB / 425.3 MB, free: 1.969 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.322e-05/0.3029, allocations: 20 kB / 425.4 MB, free: 1.949 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009156/0.3038, allocations: 0.4996 MB / 425.9 MB, free: 1.445 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00303/0.3069, allocations: 2.856 MB / 428.7 MB, free: 14.46 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005308/0.3074, allocations: 218.3 kB / 428.9 MB, free: 14.24 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001773/0.3076, allocations: 112.7 kB / 429 MB, free: 14.13 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002237/0.3079, allocations: 247.3 kB / 429.3 MB, free: 13.83 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.393e-05/0.3079, allocations: 39.06 kB / 429.3 MB, free: 13.79 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.583e-06/0.3079, allocations: 0 / 429.3 MB, free: 13.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.002262/0.3102, allocations: 1.261 MB / 430.6 MB, free: 12.43 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.322e-05/0.3102, allocations: 59.41 kB / 430.6 MB, free: 12.36 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003115/0.3105, allocations: 313.6 kB / 430.9 MB, free: 12.04 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.405e-05/0.3106, allocations: 29.7 kB / 431 MB, free: 12 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002465/0.3108, allocations: 406.5 kB / 431.4 MB, free: 11.6 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.877e-05/0.3109, allocations: 134.1 kB / 431.5 MB, free: 11.46 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000122/0.311, allocations: 86.25 kB / 431.6 MB, free: 11.38 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001371/0.3112, allocations: 350.7 kB / 431.9 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001895/0.3114, allocations: 109.1 kB / 432 MB, free: 10.92 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002969/0.3117, allocations: 254.7 kB / 432.3 MB, free: 10.61 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004994/0.3122, allocations: 392.7 kB / 432.7 MB, free: 10.16 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.3122, allocations: 4 kB / 432.7 MB, free: 10.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.000692/0.3129, allocations: 461.1 kB / 433.1 MB, free: 9.695 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.701e-05/0.3129, allocations: 4 kB / 433.1 MB, free: 9.691 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.748e-06/0.3129, allocations: 4.594 kB / 433.1 MB, free: 9.688 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000183/0.3131, allocations: 40.84 kB / 433.2 MB, free: 9.645 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003381/0.3135, allocations: 107.8 kB / 433.3 MB, free: 9.539 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003908/0.3139, allocations: 0.56 MB / 433.8 MB, free: 8.953 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001583/0.3141, allocations: 12 kB / 433.8 MB, free: 8.941 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.084e-05/0.3141, allocations: 27.98 kB / 433.9 MB, free: 8.914 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.0002581/0.3144, allocations: 221.7 kB / 434.1 MB, free: 8.688 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.794e-05/0.3144, allocations: 31.62 kB / 434.1 MB, free: 8.656 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005984/0.315, allocations: 325.7 kB / 434.4 MB, free: 8.332 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.659e-06/0.315, allocations: 4 kB / 434.4 MB, free: 8.328 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.3151, allocations: 0 / 434.4 MB, free: 8.328 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.713e-06/0.3151, allocations: 7.938 kB / 434.5 MB, free: 8.32 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001382/0.3165, allocations: 1.016 MB / 435.5 MB, free: 7.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.3165, allocations: 0 / 435.5 MB, free: 7.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003513/0.3168, allocations: 83.89 kB / 435.6 MB, free: 7.148 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001175/0.317, allocations: 29 kB / 435.6 MB, free: 7.117 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.624e-05/0.317, allocations: 19.94 kB / 435.6 MB, free: 7.098 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003402/0.3173, allocations: 0.5445 MB / 436.1 MB, free: 6.527 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.3174, allocations: 4.031 kB / 436.1 MB, free: 6.523 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000739/0.3181, allocations: 0.5447 MB / 436.7 MB, free: 5.941 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.738e-05/0.3182, allocations: 104.7 kB / 436.8 MB, free: 5.82 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.354e-05/0.3182, allocations: 8 kB / 436.8 MB, free: 5.812 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001479/0.3184, allocations: 16.27 kB / 436.8 MB, free: 5.797 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.677e-05/0.3185, allocations: 27.98 kB / 436.8 MB, free: 5.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.154e-05/0.3185, allocations: 19.94 kB / 436.9 MB, free: 5.75 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002013/0.3187, allocations: 219.1 kB / 437.1 MB, free: 5.539 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3187, allocations: 0 / 437.1 MB, free: 5.539 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004682/0.3192, allocations: 120 kB / 437.2 MB, free: 5.422 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.000179/0.3194, allocations: 119.2 kB / 437.3 MB, free: 5.293 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005857/0.3199, allocations: 308.7 kB / 437.6 MB, free: 4.992 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.32, allocations: 0 / 437.6 MB, free: 4.992 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002619/0.3202, allocations: 141.1 kB / 437.8 MB, free: 4.855 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005041/0.3207, allocations: 72 kB / 437.8 MB, free: 4.789 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002476/0.3232, allocations: 1.613 MB / 439.4 MB, free: 3.125 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005674/0.3238, allocations: 0.9248 MB / 440.4 MB, free: 2.176 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.998e-05/0.3239, allocations: 35.44 kB / 440.4 MB, free: 2.141 MB / 350.1 MB Notification: Performance of SimCode: time 8.42e-07/0.3239, allocations: 4 kB / 440.4 MB, free: 2.137 MB / 350.1 MB Notification: Performance of Templates: time 0.01311/0.337, allocations: 9.925 MB / 450.3 MB, free: 8.223 MB / 366.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches