Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.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: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001424/0.001424, allocations: 118.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001779/0.001779, allocations: 206 kB / 18.74 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.348/1.348, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001111/0.001111, allocations: 63.89 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2394/0.2405, allocations: 50.54 MB / 408.7 MB, free: 1.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.003389/0.244, allocations: 2.378 MB / 411.1 MB, free: 15.18 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001065/0.2451, allocations: 0.6427 MB / 411.8 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001358/0.2452, allocations: 4 kB / 411.8 MB, free: 14.53 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001465/0.2454, allocations: 35.59 kB / 411.8 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001669/0.2456, allocations: 83.33 kB / 411.9 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002387/0.2458, allocations: 67.84 kB / 412 MB, free: 14.35 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002738/0.2461, allocations: 270.7 kB / 412.2 MB, free: 14.08 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002112/0.2463, allocations: 106.7 kB / 412.3 MB, free: 13.97 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001949/0.2465, allocations: 115.6 kB / 412.4 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001518/0.2467, allocations: 119.5 kB / 412.5 MB, free: 13.74 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.051e-05/0.2467, allocations: 20 kB / 412.6 MB, free: 13.72 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.729e-05/0.2468, allocations: 28 kB / 412.6 MB, free: 13.69 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.412e-05/0.2468, allocations: 51.78 kB / 412.6 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001101/0.247, allocations: 123.4 kB / 412.8 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000319/0.2473, allocations: 269.9 kB / 413 MB, free: 13.26 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.2473, allocations: 0 / 413 MB, free: 13.26 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.2473, allocations: 0 / 413 MB, free: 13.26 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.801e-06/0.2473, allocations: 0 / 413 MB, free: 13.26 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: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.00072/0.248, allocations: 0.5338 MB / 413.6 MB, free: 12.68 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.853e-05/0.2481, allocations: 8.031 kB / 413.6 MB, free: 12.67 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.732e-05/0.2482, allocations: 54.73 kB / 413.6 MB, free: 12.61 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001638/0.2483, allocations: 40.73 kB / 413.7 MB, free: 12.57 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003282/0.2487, allocations: 248.7 kB / 413.9 MB, free: 12.28 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.821e-05/0.2487, allocations: 16.81 kB / 413.9 MB, free: 12.27 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.631e-05/0.2487, allocations: 36.27 kB / 414 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003357/0.2491, allocations: 191.4 kB / 414.1 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.549e-05/0.2491, allocations: 0 / 414.1 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.144e-05/0.2491, allocations: 12 kB / 414.2 MB, free: 12.03 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.616e-06/0.2491, allocations: 4 kB / 414.2 MB, free: 12.02 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002621/0.2494, allocations: 145.6 kB / 414.3 MB, free: 11.88 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008698/0.2503, allocations: 0.631 MB / 414.9 MB, free: 11.2 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002804/0.2506, allocations: 182.4 kB / 415.1 MB, free: 11.01 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001524/0.2508, allocations: 96.83 kB / 415.2 MB, free: 10.91 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.117e-05/0.2508, allocations: 4 kB / 415.2 MB, free: 10.91 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.511e-05/0.2508, allocations: 34.55 kB / 415.2 MB, free: 10.87 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.403e-06/0.2508, allocations: 4 kB / 415.3 MB, free: 10.86 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.00182/0.2526, allocations: 1.065 MB / 416.3 MB, free: 9.711 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.376e-05/0.2527, allocations: 63.34 kB / 416.4 MB, free: 9.637 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001562/0.2529, allocations: 183.2 kB / 416.6 MB, free: 9.449 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.965e-05/0.2529, allocations: 29.7 kB / 416.6 MB, free: 9.414 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.978e-05/0.253, allocations: 136.9 kB / 416.7 MB, free: 9.273 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.458e-05/0.2531, allocations: 123 kB / 416.8 MB, free: 9.152 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.596e-05/0.2532, allocations: 57.69 kB / 416.9 MB, free: 9.09 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001122/0.2533, allocations: 326.8 kB / 417.2 MB, free: 8.762 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001421/0.2534, allocations: 71.95 kB / 417.3 MB, free: 8.691 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001528/0.2536, allocations: 110.8 kB / 417.4 MB, free: 8.574 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002946/0.2539, allocations: 185.6 kB / 417.6 MB, free: 8.387 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.2539, allocations: 3.984 kB / 417.6 MB, free: 8.383 MB / 334.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004851/0.2544, allocations: 299.2 kB / 417.9 MB, free: 8.082 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.621e-05/0.2544, allocations: 4 kB / 417.9 MB, free: 8.078 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/0.2544, allocations: 0 / 417.9 MB, free: 8.078 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001759/0.2546, allocations: 44.83 kB / 417.9 MB, free: 8.031 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002485/0.2549, allocations: 59.91 kB / 418 MB, free: 7.973 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001488/0.2564, allocations: 1.736 MB / 419.7 MB, free: 6.102 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000127/0.2565, allocations: 8 kB / 419.7 MB, free: 6.094 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.039e-05/0.2565, allocations: 16.05 kB / 419.7 MB, free: 6.078 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (32): * Single equations (assignments): 31 * 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): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001351/0.2567, allocations: 141.7 kB / 419.9 MB, free: 5.93 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.669e-05/0.2567, allocations: 27.8 kB / 419.9 MB, free: 5.902 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.368e-05/0.2568, allocations: 30.66 kB / 419.9 MB, free: 5.871 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.2568, allocations: 0 / 419.9 MB, free: 5.871 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.304e-06/0.2568, allocations: 7.984 kB / 419.9 MB, free: 5.863 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.2568, allocations: 3.984 kB / 419.9 MB, free: 5.859 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001017/0.2579, allocations: 0.7853 MB / 420.7 MB, free: 4.996 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.2579, allocations: 4 kB / 420.7 MB, free: 4.992 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002845/0.2582, allocations: 59.91 kB / 420.8 MB, free: 4.934 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001114/0.2583, allocations: 41.05 kB / 420.8 MB, free: 4.891 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.97e-05/0.2583, allocations: 12 kB / 420.8 MB, free: 4.879 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001042/0.2594, allocations: 1.485 MB / 422.3 MB, free: 3.246 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.2594, allocations: 0 / 422.3 MB, free: 3.246 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006063/0.26, allocations: 482.7 kB / 422.8 MB, free: 2.746 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.628e-05/0.2601, allocations: 105 kB / 422.9 MB, free: 2.625 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.614e-05/0.2601, allocations: 4 kB / 422.9 MB, free: 2.621 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001307/0.2602, allocations: 8 kB / 422.9 MB, free: 2.613 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.669e-05/0.2603, allocations: 27.91 kB / 422.9 MB, free: 2.586 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.3e-05/0.2603, allocations: 8 kB / 422.9 MB, free: 2.578 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.83e-05/0.2604, allocations: 140.3 kB / 423.1 MB, free: 2.441 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2604, allocations: 0 / 423.1 MB, free: 2.441 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003476/0.2608, allocations: 64 kB / 423.1 MB, free: 2.379 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertia3.phi,inertia3.w,damper.phi_rel,damper.w_rel) * 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 (29): * Single equations (assignments): 28 * 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): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008955/0.2617, allocations: 1.033 MB / 424.2 MB, free: 1.309 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005558/0.2622, allocations: 334.5 kB / 424.5 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.2623, allocations: 0 / 424.5 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003245/0.2626, allocations: 246.6 kB / 424.7 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004149/0.263, allocations: 47.98 kB / 424.8 MB, free: 0.668 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003183/0.2662, allocations: 2.762 MB / 427.6 MB, free: 13.79 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003036/0.2665, allocations: 0.7525 MB / 428.3 MB, free: 13.01 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.745e-05/0.2666, allocations: 26.28 kB / 428.3 MB, free: 12.99 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000109/0.2668, allocations: 75.41 kB / 428.4 MB, free: 12.91 MB / 350.1 MB Notification: Performance of SimCode: time 5.62e-07/0.2668, allocations: 0 / 428.4 MB, free: 12.91 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4358/0.7025, allocations: 5.28 MB / 433.7 MB, free: 7.742 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.04/10.74, allocations: 2.812 kB / 433.7 MB, free: 7.742 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_First.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/First/First.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches