Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.FirstGrounded,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_FirstGrounded",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.FirstGrounded,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_FirstGrounded",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002266/0.002265, allocations: 108.2 kB / 16.92 MB, free: 6.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002579/0.002579, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.57/2.57, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001243/0.001243, allocations: 51.2 kB / 300.7 MB, free: 5.766 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1259/0.1272, allocations: 49.45 MB / 350.2 MB, free: 4.305 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.FirstGrounded): time 0.004821/0.132, allocations: 2.333 MB / 352.5 MB, free: 1.949 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001513/0.1336, allocations: 0.5842 MB / 353.1 MB, free: 1.359 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003088/0.1339, allocations: 7.938 kB / 353.1 MB, free: 1.352 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002418/0.1342, allocations: 31.66 kB / 353.1 MB, free: 1.32 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003091/0.1346, allocations: 71.34 kB / 353.2 MB, free: 1.25 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003172/0.1349, allocations: 63.92 kB / 353.3 MB, free: 1.188 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004368/0.1353, allocations: 254.8 kB / 353.5 MB, free: 0.9375 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002435/0.1356, allocations: 72.86 kB / 353.6 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002594/0.1359, allocations: 103.6 kB / 353.7 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002147/0.1361, allocations: 103.5 kB / 353.8 MB, free: 0.6562 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.087e-05/0.1361, allocations: 20 kB / 353.8 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.532e-05/0.1362, allocations: 27.94 kB / 353.8 MB, free: 0.6094 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.553e-05/0.1363, allocations: 39.84 kB / 353.9 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001428/0.1364, allocations: 119.4 kB / 354 MB, free: 464 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003342/0.1368, allocations: 247.3 kB / 354.2 MB, free: 216 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.1368, allocations: 0 / 354.2 MB, free: 216 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.1368, allocations: 0 / 354.2 MB, free: 216 kB / 286.1 MB Notification: Performance of Transformations before backend: time 1.027e-05/0.1368, allocations: 0 / 354.2 MB, free: 216 kB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0009459/0.1378, allocations: 0.5107 MB / 354.7 MB, free: 15.65 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.216e-05/0.1378, allocations: 19.97 kB / 354.8 MB, free: 15.63 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.892e-05/0.1379, allocations: 50.73 kB / 354.8 MB, free: 15.57 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.444e-05/0.138, allocations: 28.66 kB / 354.8 MB, free: 15.55 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003256/0.1383, allocations: 233.8 kB / 355.1 MB, free: 15.28 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.485e-05/0.1384, allocations: 12.81 kB / 355.1 MB, free: 15.27 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.034e-05/0.1384, allocations: 24.36 kB / 355.1 MB, free: 15.24 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004029/0.1388, allocations: 214 kB / 355.3 MB, free: 15.02 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.121e-05/0.1389, allocations: 7.891 kB / 355.3 MB, free: 15.02 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.718e-05/0.1389, allocations: 16 kB / 355.3 MB, free: 15 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.123e-05/0.1389, allocations: 4 kB / 355.3 MB, free: 15 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002826/0.1392, allocations: 125.6 kB / 355.5 MB, free: 14.87 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001175/0.1404, allocations: 0.7093 MB / 356.2 MB, free: 14.11 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002949/0.1407, allocations: 151.5 kB / 356.3 MB, free: 13.95 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001364/0.1408, allocations: 64.83 kB / 356.4 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.097e-05/0.1409, allocations: 4 kB / 356.4 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.082e-05/0.1409, allocations: 38.56 kB / 356.4 MB, free: 13.83 MB / 302.1 MB Notification: Performance of pre-optimization done (n=20): time 1.994e-06/0.1409, allocations: 0 / 356.4 MB, free: 13.83 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.00184/0.1428, allocations: 0.8853 MB / 357.3 MB, free: 12.86 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.371e-05/0.1429, allocations: 55.41 kB / 357.4 MB, free: 12.79 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001837/0.143, allocations: 179.2 kB / 357.5 MB, free: 12.61 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.094e-05/0.1431, allocations: 29.7 kB / 357.6 MB, free: 12.57 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001021/0.1432, allocations: 144.2 kB / 357.7 MB, free: 12.43 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.623e-05/0.1433, allocations: 86.75 kB / 357.8 MB, free: 12.34 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.276e-05/0.1434, allocations: 53.64 kB / 357.8 MB, free: 12.29 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001255/0.1435, allocations: 334.8 kB / 358.2 MB, free: 11.95 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001364/0.1436, allocations: 55.97 kB / 358.2 MB, free: 11.89 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001509/0.1438, allocations: 104.2 kB / 358.3 MB, free: 11.78 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002878/0.1441, allocations: 160.2 kB / 358.5 MB, free: 11.61 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.1441, allocations: 0 / 358.5 MB, free: 11.61 MB / 302.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004642/0.1446, allocations: 253.9 kB / 358.7 MB, free: 11.35 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.882e-05/0.1446, allocations: 8 kB / 358.7 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.1446, allocations: 0 / 358.7 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001789/0.1448, allocations: 40.95 kB / 358.8 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002445/0.1451, allocations: 51.91 kB / 358.8 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001342/0.1464, allocations: 1.484 MB / 360.3 MB, free: 9.621 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001334/0.1466, allocations: 8.031 kB / 360.3 MB, free: 9.613 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.261e-05/0.1466, allocations: 12 kB / 360.3 MB, free: 9.602 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (28): * Single equations (assignments): 27 * 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 prepare postOptimizeDAE: time 0.0001498/0.1468, allocations: 137.8 kB / 360.5 MB, free: 9.457 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.661e-05/0.1468, allocations: 15.81 kB / 360.5 MB, free: 9.441 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.904e-05/0.1469, allocations: 25.86 kB / 360.5 MB, free: 9.414 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.181e-06/0.1469, allocations: 7.938 kB / 360.5 MB, free: 9.406 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.672e-06/0.1469, allocations: 0 / 360.5 MB, free: 9.406 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.1469, allocations: 0 / 360.5 MB, free: 9.406 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001004/0.1479, allocations: 0.6441 MB / 361.2 MB, free: 8.691 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.616e-06/0.1479, allocations: 0 / 361.2 MB, free: 8.691 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000236/0.1482, allocations: 52.05 kB / 361.2 MB, free: 8.641 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001381/0.1483, allocations: 40.88 kB / 361.2 MB, free: 8.598 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.362e-05/0.1484, allocations: 8 kB / 361.3 MB, free: 8.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001314/0.1497, allocations: 1.488 MB / 362.7 MB, free: 6.965 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.1497, allocations: 0 / 362.7 MB, free: 6.965 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006329/0.1503, allocations: 406 kB / 363.1 MB, free: 6.543 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.379e-05/0.1504, allocations: 92.83 kB / 363.2 MB, free: 6.434 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.873e-05/0.1505, allocations: 8 kB / 363.2 MB, free: 6.426 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001304/0.1506, allocations: 8.031 kB / 363.2 MB, free: 6.418 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.096e-05/0.1507, allocations: 23.92 kB / 363.3 MB, free: 6.395 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.31e-05/0.1507, allocations: 4 kB / 363.3 MB, free: 6.391 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001306/0.1508, allocations: 136.8 kB / 363.4 MB, free: 6.258 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.934e-06/0.1509, allocations: 0 / 363.4 MB, free: 6.258 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003845/0.1512, allocations: 59.94 kB / 363.5 MB, free: 6.199 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (21): * Single equations (assignments): 20 * 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.0009999/0.1523, allocations: 0.9382 MB / 364.4 MB, free: 5.227 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007085/0.153, allocations: 296.2 kB / 364.7 MB, free: 4.926 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.153, allocations: 0 / 364.7 MB, free: 4.926 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003356/0.1533, allocations: 222.8 kB / 364.9 MB, free: 4.695 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005651/0.1539, allocations: 40.25 kB / 364.9 MB, free: 4.656 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003682/0.1576, allocations: 2.531 MB / 367.5 MB, free: 2 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003669/0.158, allocations: 0.7404 MB / 368.2 MB, free: 1.23 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001027/0.1581, allocations: 21.94 kB / 368.2 MB, free: 1.211 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001182/0.1582, allocations: 71.42 kB / 368.3 MB, free: 1.141 MB / 302.1 MB Notification: Performance of SimCode: time 6.71e-07/0.1582, allocations: 0 / 368.3 MB, free: 1.141 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.29/0.4483, allocations: 4.619 MB / 372.9 MB, free: 25.27 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.98/15.43, allocations: 10.27 kB / 372.9 MB, free: 25.27 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_FirstGrounded.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/FirstGrounded/FirstGrounded.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches