Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Mechanics_Rotational_Examples_FirstGrounded",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.FirstGrounded,fileNamePrefix="Modelica_3_2_3_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.001357/0.001357, allocations: 99.02 kB / 17.58 MB, free: 5.418 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.001414/0.001414, allocations: 196 kB / 18.51 MB, free: 4.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.449/1.449, allocations: 205.1 MB / 224.4 MB, free: 12.3 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001842/0.001842, allocations: 55.92 kB / 280.8 MB, free: 3.059 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09459/0.09645, allocations: 46.62 MB / 327.4 MB, free: 4.367 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.FirstGrounded): time 0.005001/0.1015, allocations: 2.337 MB / 329.7 MB, free: 2.004 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001257/0.1028, allocations: 0.6203 MB / 330.3 MB, free: 1.375 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001452/0.1029, allocations: 7.938 kB / 330.3 MB, free: 1.367 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001725/0.1032, allocations: 35.66 kB / 330.4 MB, free: 1.332 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000145/0.1033, allocations: 71.28 kB / 330.5 MB, free: 1.262 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000221/0.1035, allocations: 55.92 kB / 330.5 MB, free: 1.207 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003289/0.1039, allocations: 254.8 kB / 330.8 MB, free: 0.957 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000202/0.1041, allocations: 96.28 kB / 330.9 MB, free: 0.8633 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001474/0.1043, allocations: 95.66 kB / 330.9 MB, free: 0.7695 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001598/0.1044, allocations: 111.5 kB / 331.1 MB, free: 0.6602 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.651e-05/0.1045, allocations: 16 kB / 331.1 MB, free: 0.6445 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.938e-05/0.1045, allocations: 20 kB / 331.1 MB, free: 0.625 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.254e-05/0.1046, allocations: 51.78 kB / 331.1 MB, free: 0.5742 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001216/0.1047, allocations: 111.4 kB / 331.2 MB, free: 476 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002911/0.105, allocations: 247.4 kB / 331.5 MB, free: 228 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.105, allocations: 0 / 331.5 MB, free: 228 kB / 270.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.105, allocations: 0 / 331.5 MB, free: 228 kB / 270.1 MB Notification: Performance of Transformations before backend: time 7.464e-06/0.105, allocations: 0 / 331.5 MB, free: 228 kB / 270.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.0008539/0.1059, allocations: 0.5068 MB / 332 MB, free: 15.67 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.92e-05/0.1059, allocations: 11.97 kB / 332 MB, free: 15.66 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.14e-05/0.106, allocations: 58.73 kB / 332.1 MB, free: 15.59 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.097e-05/0.1061, allocations: 24.66 kB / 332.1 MB, free: 15.57 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003371/0.1065, allocations: 248.5 kB / 332.3 MB, free: 15.29 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.588e-05/0.1065, allocations: 12.81 kB / 332.3 MB, free: 15.27 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.877e-05/0.1065, allocations: 20.38 kB / 332.4 MB, free: 15.25 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004413/0.107, allocations: 210 kB / 332.6 MB, free: 15.03 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.412e-05/0.107, allocations: 7.906 kB / 332.6 MB, free: 15.02 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.353e-05/0.1071, allocations: 8 kB / 332.6 MB, free: 15.02 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.618e-06/0.1071, allocations: 4 kB / 332.6 MB, free: 15.01 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002705/0.1073, allocations: 129.6 kB / 332.7 MB, free: 14.89 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001133/0.1085, allocations: 0.7133 MB / 333.4 MB, free: 14.12 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002751/0.1088, allocations: 138.5 kB / 333.6 MB, free: 13.98 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001397/0.1089, allocations: 68.83 kB / 333.6 MB, free: 13.91 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.642e-05/0.109, allocations: 4 kB / 333.6 MB, free: 13.9 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.383e-05/0.109, allocations: 38.5 kB / 333.7 MB, free: 13.86 MB / 286.1 MB Notification: Performance of pre-optimization done (n=20): time 1.342e-06/0.109, allocations: 0 / 333.7 MB, free: 13.86 MB / 286.1 MB Notification: Performance of matching and sorting (n=24): time 0.001693/0.1107, allocations: 0.8815 MB / 334.6 MB, free: 12.88 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.518e-05/0.1108, allocations: 55.41 kB / 334.6 MB, free: 12.81 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002209/0.111, allocations: 178.7 kB / 334.8 MB, free: 12.63 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.075e-05/0.111, allocations: 29.7 kB / 334.8 MB, free: 12.59 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001231/0.1112, allocations: 144.3 kB / 335 MB, free: 12.45 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.422e-05/0.1113, allocations: 94.64 kB / 335 MB, free: 12.36 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.425e-05/0.1114, allocations: 45.7 kB / 335.1 MB, free: 12.3 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001583/0.1115, allocations: 330.8 kB / 335.4 MB, free: 11.97 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001257/0.1117, allocations: 51.98 kB / 335.5 MB, free: 11.92 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001682/0.1119, allocations: 104.2 kB / 335.6 MB, free: 11.8 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002919/0.1122, allocations: 172.1 kB / 335.7 MB, free: 11.62 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.222e-06/0.1122, allocations: 4 kB / 335.7 MB, free: 11.62 MB / 286.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004537/0.1126, allocations: 242.1 kB / 336 MB, free: 11.37 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.15e-05/0.1127, allocations: 7.984 kB / 336 MB, free: 11.36 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/0.1127, allocations: 4 kB / 336 MB, free: 11.36 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001768/0.1129, allocations: 32.84 kB / 336 MB, free: 11.32 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002248/0.1131, allocations: 56.03 kB / 336.1 MB, free: 11.27 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001464/0.1146, allocations: 1.496 MB / 337.6 MB, free: 9.629 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001133/0.1147, allocations: 8 kB / 337.6 MB, free: 9.621 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.823e-05/0.1147, allocations: 8 kB / 337.6 MB, free: 9.613 MB / 286.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.0001428/0.1149, allocations: 137.8 kB / 337.7 MB, free: 9.469 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.245e-05/0.1149, allocations: 15.81 kB / 337.7 MB, free: 9.453 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.817e-05/0.115, allocations: 29.92 kB / 337.8 MB, free: 9.426 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.631e-06/0.115, allocations: 7.938 kB / 337.8 MB, free: 9.418 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.249e-06/0.115, allocations: 0 / 337.8 MB, free: 9.418 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.391e-06/0.115, allocations: 0 / 337.8 MB, free: 9.418 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009934/0.116, allocations: 0.648 MB / 338.4 MB, free: 8.695 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.049e-06/0.116, allocations: 3.984 kB / 338.4 MB, free: 8.691 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002142/0.1163, allocations: 47.92 kB / 338.5 MB, free: 8.645 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001134/0.1164, allocations: 32.83 kB / 338.5 MB, free: 8.609 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.57e-05/0.1164, allocations: 4 kB / 338.5 MB, free: 8.605 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00135/0.1178, allocations: 1.489 MB / 340 MB, free: 6.977 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.372e-06/0.1178, allocations: 4.031 kB / 340 MB, free: 6.973 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006228/0.1184, allocations: 397.9 kB / 340.4 MB, free: 6.559 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.047e-05/0.1185, allocations: 101 kB / 340.5 MB, free: 6.441 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.498e-05/0.1185, allocations: 4.031 kB / 340.5 MB, free: 6.438 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001232/0.1187, allocations: 8 kB / 340.5 MB, free: 6.43 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.36e-05/0.1187, allocations: 19.92 kB / 340.5 MB, free: 6.41 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.312e-05/0.1187, allocations: 7.984 kB / 340.5 MB, free: 6.402 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001212/0.1189, allocations: 132.8 kB / 340.7 MB, free: 6.273 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1189, allocations: 0 / 340.7 MB, free: 6.273 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003807/0.1193, allocations: 60 kB / 340.7 MB, free: 6.215 MB / 286.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.0009904/0.1203, allocations: 0.9531 MB / 341.7 MB, free: 5.223 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0006262/0.1209, allocations: 294.5 kB / 342 MB, free: 4.922 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.1209, allocations: 0 / 342 MB, free: 4.922 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003319/0.1213, allocations: 214.8 kB / 342.2 MB, free: 4.699 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005557/0.1218, allocations: 48.3 kB / 342.2 MB, free: 4.652 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003542/0.1254, allocations: 2.523 MB / 344.7 MB, free: 2.012 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004385/0.1258, allocations: 0.7481 MB / 345.5 MB, free: 1.238 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 9.52e-05/0.126, allocations: 21.94 kB / 345.5 MB, free: 1.219 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001167/0.1261, allocations: 71.41 kB / 345.6 MB, free: 1.148 MB / 286.1 MB Notification: Performance of SimCode: time 9.01e-07/0.1261, allocations: 0 / 345.6 MB, free: 1.148 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03376/0.1599, allocations: 4.612 MB / 350.2 MB, free: 12.47 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.769/9.929, allocations: 12.42 kB / 350.2 MB, free: 12.46 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Mechanics_Rotational_Examples_FirstGrounded.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/FirstGrounded/FirstGrounded.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.FirstGrounded.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches