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.001124/0.001124, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001123/0.001123, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.375/1.375, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001231/0.001231, allocations: 59.91 kB / 358.7 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2628/0.264, allocations: 50.55 MB / 409.2 MB, free: 1.625 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.006449/0.2705, allocations: 5.436 MB / 414.7 MB, free: 12.17 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00347/0.274, allocations: 2.145 MB / 416.8 MB, free: 10.01 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000775/0.2748, allocations: 43.75 kB / 416.9 MB, free: 9.969 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005458/0.2754, allocations: 198.3 kB / 417.1 MB, free: 9.773 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000563/0.276, allocations: 166.4 kB / 417.2 MB, free: 9.609 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009592/0.277, allocations: 407 kB / 417.6 MB, free: 9.211 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001128/0.2781, allocations: 1.025 MB / 418.6 MB, free: 8.18 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008396/0.2789, allocations: 0.6104 MB / 419.3 MB, free: 7.539 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004521/0.2794, allocations: 338.8 kB / 419.6 MB, free: 7.207 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004768/0.2799, allocations: 370.3 kB / 419.9 MB, free: 6.844 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001354/0.28, allocations: 92 kB / 420 MB, free: 6.754 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002584/0.2803, allocations: 151.9 kB / 420.2 MB, free: 6.605 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000159/0.2805, allocations: 203.4 kB / 420.4 MB, free: 6.406 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003355/0.2808, allocations: 438 kB / 420.8 MB, free: 5.977 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001028/0.2819, allocations: 1.191 MB / 422 MB, free: 4.781 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.2819, allocations: 0 / 422 MB, free: 4.781 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.2819, allocations: 0 / 422 MB, free: 4.781 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.123e-05/0.2819, allocations: 0 / 422 MB, free: 4.781 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.001271/0.2832, allocations: 1.06 MB / 423.1 MB, free: 3.672 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.055e-05/0.2832, allocations: 8.031 kB / 423.1 MB, free: 3.664 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002199/0.2834, allocations: 100.4 kB / 423.2 MB, free: 3.566 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006908/0.2841, allocations: 0.5262 MB / 423.7 MB, free: 3 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.806e-05/0.2842, allocations: 70.31 kB / 423.8 MB, free: 2.93 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001029/0.2843, allocations: 84.33 kB / 423.8 MB, free: 2.848 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001267/0.2856, allocations: 0.8125 MB / 424.7 MB, free: 2 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.283e-05/0.2856, allocations: 7.984 kB / 424.7 MB, free: 1.992 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.674e-05/0.2857, allocations: 36 kB / 424.7 MB, free: 1.957 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.778e-05/0.2857, allocations: 20 kB / 424.7 MB, free: 1.938 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009069/0.2866, allocations: 0.4918 MB / 425.2 MB, free: 1.441 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002794/0.2894, allocations: 2.869 MB / 428.1 MB, free: 14.45 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005098/0.2899, allocations: 218.7 kB / 428.3 MB, free: 14.22 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001722/0.2901, allocations: 104.7 kB / 428.4 MB, free: 14.12 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001864/0.2903, allocations: 255.3 kB / 428.6 MB, free: 13.81 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.739e-05/0.2904, allocations: 31.06 kB / 428.7 MB, free: 13.77 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.583e-06/0.2904, allocations: 0 / 428.7 MB, free: 13.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=35): time 0.002145/0.2925, allocations: 1.27 MB / 429.9 MB, free: 12.41 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.006e-05/0.2926, allocations: 55.41 kB / 430 MB, free: 12.34 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002847/0.2928, allocations: 305.7 kB / 430.3 MB, free: 12.03 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.182e-05/0.2929, allocations: 33.7 kB / 430.3 MB, free: 11.99 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002113/0.2931, allocations: 415.7 kB / 430.7 MB, free: 11.58 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.149e-05/0.2932, allocations: 138.9 kB / 430.9 MB, free: 11.44 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001104/0.2933, allocations: 90.2 kB / 431 MB, free: 11.35 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000114/0.2934, allocations: 350.7 kB / 431.3 MB, free: 11 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001938/0.2936, allocations: 105.1 kB / 431.4 MB, free: 10.89 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002699/0.2939, allocations: 254.7 kB / 431.7 MB, free: 10.58 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004799/0.2944, allocations: 396.7 kB / 432 MB, free: 10.13 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.2944, allocations: 4 kB / 432 MB, free: 10.13 MB / 350.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006683/0.2951, allocations: 457.7 kB / 432.5 MB, free: 9.672 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.806e-05/0.2951, allocations: 11.98 kB / 432.5 MB, free: 9.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.834e-06/0.2951, allocations: 4 kB / 432.5 MB, free: 9.656 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001658/0.2953, allocations: 32.84 kB / 432.5 MB, free: 9.621 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003406/0.2956, allocations: 111.8 kB / 432.7 MB, free: 9.512 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003552/0.296, allocations: 0.5564 MB / 433.2 MB, free: 8.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001692/0.2962, allocations: 20 kB / 433.2 MB, free: 8.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.507e-05/0.2962, allocations: 20 kB / 433.2 MB, free: 8.891 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.0002401/0.2965, allocations: 225.6 kB / 433.5 MB, free: 8.66 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.347e-05/0.2965, allocations: 35.77 kB / 433.5 MB, free: 8.625 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005678/0.2971, allocations: 333.8 kB / 433.8 MB, free: 8.293 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.488e-06/0.2971, allocations: 4 kB / 433.8 MB, free: 8.289 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.2971, allocations: 0 / 433.8 MB, free: 8.289 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.2972, allocations: 0 / 433.8 MB, free: 8.289 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001262/0.2984, allocations: 1.024 MB / 434.9 MB, free: 7.191 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-06/0.2984, allocations: 4 kB / 434.9 MB, free: 7.188 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003482/0.2988, allocations: 79.89 kB / 434.9 MB, free: 7.109 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000118/0.2989, allocations: 32.84 kB / 435 MB, free: 7.074 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.336e-05/0.2989, allocations: 12 kB / 435 MB, free: 7.062 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000291/0.2992, allocations: 0.5446 MB / 435.5 MB, free: 6.492 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.582e-06/0.2993, allocations: 3.938 kB / 435.5 MB, free: 6.488 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007081/0.3, allocations: 0.549 MB / 436.1 MB, free: 5.902 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.139e-05/0.3001, allocations: 112.9 kB / 436.2 MB, free: 5.773 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.596e-05/0.3001, allocations: 8 kB / 436.2 MB, free: 5.766 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001473/0.3003, allocations: 8 kB / 436.2 MB, free: 5.758 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.919e-05/0.3003, allocations: 23.97 kB / 436.2 MB, free: 5.734 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.078e-05/0.3003, allocations: 11.98 kB / 436.2 MB, free: 5.723 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001879/0.3005, allocations: 219.1 kB / 436.5 MB, free: 5.512 MB / 350.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3005, allocations: 0 / 436.5 MB, free: 5.512 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004737/0.301, allocations: 124 kB / 436.6 MB, free: 5.391 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.0001705/0.3012, allocations: 122.2 kB / 436.7 MB, free: 5.262 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005646/0.3018, allocations: 317.5 kB / 437 MB, free: 4.953 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.3018, allocations: 4.25 kB / 437 MB, free: 4.949 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002539/0.3021, allocations: 139.8 kB / 437.1 MB, free: 4.812 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004791/0.3025, allocations: 62.66 kB / 437.2 MB, free: 4.758 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00217/0.3047, allocations: 1.613 MB / 438.8 MB, free: 3.098 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004316/0.3052, allocations: 0.9249 MB / 439.7 MB, free: 2.148 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001501/0.3053, allocations: 50.83 kB / 439.8 MB, free: 2.102 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.436e-05/0.3054, allocations: 31.42 kB / 439.8 MB, free: 2.07 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3054, allocations: 0 / 439.8 MB, free: 2.07 MB / 350.1 MB Notification: Performance of Templates: time 0.007851/0.3133, allocations: 3.831 MB / 443.7 MB, free: 14.26 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/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_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches