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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001167/0.001168, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.397/1.397, allocations: 222.9 MB / 240.9 MB, free: 10.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001079/0.001079, allocations: 105.5 kB / 291.2 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001079/0.001079, allocations: 43.94 kB / 350 MB, free: 64 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2267/0.2279, allocations: 49.43 MB / 399.5 MB, free: 33.35 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.004695/0.2326, allocations: 5.409 MB / 404.9 MB, free: 27.92 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002666/0.2353, allocations: 2.036 MB / 406.9 MB, free: 25.88 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006426/0.236, allocations: 31.81 kB / 406.9 MB, free: 25.84 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004092/0.2364, allocations: 158.8 kB / 407.1 MB, free: 25.69 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003081/0.2367, allocations: 142.8 kB / 407.2 MB, free: 25.55 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006484/0.2374, allocations: 343.4 kB / 407.6 MB, free: 25.21 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006055/0.238, allocations: 0.9624 MB / 408.5 MB, free: 24.24 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005438/0.2386, allocations: 0.5513 MB / 409.1 MB, free: 23.67 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002287/0.2388, allocations: 282.9 kB / 409.4 MB, free: 23.39 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002601/0.2391, allocations: 346.2 kB / 409.7 MB, free: 23.05 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.532e-05/0.2391, allocations: 56 kB / 409.8 MB, free: 23 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002009/0.2394, allocations: 111.9 kB / 409.9 MB, free: 22.89 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000114/0.2395, allocations: 163.4 kB / 410 MB, free: 22.73 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002894/0.2398, allocations: 397.9 kB / 410.4 MB, free: 22.34 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006392/0.2404, allocations: 1.096 MB / 411.5 MB, free: 21.24 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.2404, allocations: 0 / 411.5 MB, free: 21.24 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.021e-06/0.2404, allocations: 0 / 411.5 MB, free: 21.24 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.051e-05/0.2405, allocations: 0 / 411.5 MB, free: 21.24 MB / 298.7 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.001189/0.2417, allocations: 1.03 MB / 412.5 MB, free: 20.16 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.307e-05/0.2417, allocations: 16.03 kB / 412.6 MB, free: 20.14 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001013/0.2418, allocations: 95.81 kB / 412.7 MB, free: 20.05 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000498/0.2423, allocations: 0.4986 MB / 413.2 MB, free: 19.51 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.664e-05/0.2424, allocations: 66.38 kB / 413.2 MB, free: 19.45 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.943e-05/0.2425, allocations: 88.28 kB / 413.3 MB, free: 19.36 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001036/0.2435, allocations: 0.8047 MB / 414.1 MB, free: 18.52 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.992e-05/0.2435, allocations: 4 kB / 414.1 MB, free: 18.51 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.131e-05/0.2436, allocations: 36 kB / 414.1 MB, free: 18.48 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.601e-05/0.2436, allocations: 20 kB / 414.2 MB, free: 18.46 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007942/0.2444, allocations: 0.4918 MB / 414.7 MB, free: 17.97 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002317/0.2467, allocations: 2.903 MB / 417.6 MB, free: 14.94 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004365/0.2472, allocations: 224.4 kB / 417.8 MB, free: 14.71 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00014/0.2473, allocations: 104.8 kB / 417.9 MB, free: 14.61 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002165/0.2476, allocations: 251.3 kB / 418.1 MB, free: 14.3 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.561e-05/0.2476, allocations: 34.56 kB / 418.2 MB, free: 14.26 MB / 298.7 MB Notification: Performance of pre-optimization done (n=30): time 2.024e-06/0.2476, allocations: 0 / 418.2 MB, free: 14.26 MB / 298.7 MB Notification: Performance of matching and sorting (n=35): time 0.001846/0.2495, allocations: 1.251 MB / 419.4 MB, free: 12.92 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.822e-05/0.2495, allocations: 59.41 kB / 419.5 MB, free: 12.85 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002191/0.2497, allocations: 304.4 kB / 419.8 MB, free: 12.54 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.735e-05/0.2497, allocations: 33.7 kB / 419.8 MB, free: 12.5 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001272/0.2499, allocations: 398.5 kB / 420.2 MB, free: 12.1 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.515e-05/0.2499, allocations: 134 kB / 420.3 MB, free: 11.97 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.052e-05/0.25, allocations: 90.16 kB / 420.4 MB, free: 11.88 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.803e-05/0.2501, allocations: 354.7 kB / 420.8 MB, free: 11.52 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001572/0.2503, allocations: 105.1 kB / 420.9 MB, free: 11.42 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001917/0.2505, allocations: 250.7 kB / 421.1 MB, free: 11.11 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003657/0.2508, allocations: 400.8 kB / 421.5 MB, free: 10.66 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.2509, allocations: 0 / 421.5 MB, free: 10.66 MB / 298.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0005361/0.2514, allocations: 461.1 kB / 421.9 MB, free: 10.2 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.582e-05/0.2514, allocations: 8 kB / 422 MB, free: 10.19 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.203e-06/0.2514, allocations: 4 kB / 422 MB, free: 10.19 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001617/0.2516, allocations: 37.44 kB / 422 MB, free: 10.15 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000326/0.2519, allocations: 111.8 kB / 422.1 MB, free: 10.04 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002326/0.2522, allocations: 0.5523 MB / 422.7 MB, free: 9.461 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001562/0.2523, allocations: 16 kB / 422.7 MB, free: 9.445 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.123e-05/0.2524, allocations: 23.98 kB / 422.7 MB, free: 9.422 MB / 298.7 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.0002031/0.2526, allocations: 213.7 kB / 422.9 MB, free: 9.203 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.123e-05/0.2527, allocations: 55.45 kB / 423 MB, free: 9.148 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000482/0.2531, allocations: 317.9 kB / 423.3 MB, free: 8.832 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.2532, allocations: 4 kB / 423.3 MB, free: 8.828 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.2532, allocations: 0 / 423.3 MB, free: 8.828 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.977e-06/0.2532, allocations: 0 / 423.3 MB, free: 8.828 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001034/0.2542, allocations: 1.023 MB / 424.3 MB, free: 7.73 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.444e-06/0.2542, allocations: 0 / 424.3 MB, free: 7.73 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003139/0.2545, allocations: 79.89 kB / 424.4 MB, free: 7.652 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001025/0.2547, allocations: 33 kB / 424.4 MB, free: 7.617 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.162e-05/0.2547, allocations: 12 kB / 424.4 MB, free: 7.605 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001886/0.2549, allocations: 0.5561 MB / 425 MB, free: 7.023 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.2549, allocations: 0 / 425 MB, free: 7.023 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003149/0.258, allocations: 3.949 MB / 428.9 MB, free: 2.777 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.544e-05/0.2581, allocations: 108.7 kB / 429 MB, free: 2.652 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.278e-05/0.2581, allocations: 12 kB / 429 MB, free: 2.641 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001363/0.2583, allocations: 8 kB / 429 MB, free: 2.633 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.876e-05/0.2583, allocations: 19.91 kB / 429.1 MB, free: 2.613 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.82e-05/0.2584, allocations: 20.09 kB / 429.1 MB, free: 2.594 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001354/0.2585, allocations: 207.1 kB / 429.3 MB, free: 2.391 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.2585, allocations: 0 / 429.3 MB, free: 2.391 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005739/0.2591, allocations: 156 kB / 429.4 MB, free: 2.238 MB / 298.7 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.0001253/0.2592, allocations: 115.3 kB / 429.6 MB, free: 2.117 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005034/0.2597, allocations: 304 kB / 429.8 MB, free: 1.82 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.2598, allocations: 0 / 429.8 MB, free: 1.82 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002066/0.26, allocations: 143.9 kB / 430 MB, free: 1.68 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000448/0.2604, allocations: 66.59 kB / 430.1 MB, free: 1.617 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002284/0.2627, allocations: 2.304 MB / 432.4 MB, free: 15.24 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004691/0.2632, allocations: 0.9288 MB / 433.3 MB, free: 14.28 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001729/0.2634, allocations: 55.2 kB / 433.3 MB, free: 14.23 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.768e-05/0.2635, allocations: 31.44 kB / 433.4 MB, free: 14.2 MB / 314.7 MB Notification: Performance of SimCode: time 8.72e-07/0.2635, allocations: 0 / 433.4 MB, free: 14.2 MB / 314.7 MB Notification: Performance of Templates: time 0.008743/0.2722, allocations: 4.229 MB / 437.6 MB, free: 9.996 MB / 314.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.makefile (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) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches