Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) 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(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",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.001353/0.001353, allocations: 113.8 kB / 17.78 MB, free: 5.281 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.001338/0.001338, allocations: 179.9 kB / 18.71 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.439/1.439, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2355/0.2355, allocations: 44.19 MB / 336.8 MB, free: 2.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001926/0.001926, allocations: 67.89 kB / 470 MB, free: 13.7 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.382/0.3839, allocations: 60.83 MB / 0.5184 GB, free: 3.297 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003268/0.3872, allocations: 1.909 MB / 0.5203 GB, free: 1.969 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008917/0.3882, allocations: 0.4891 MB / 0.5208 GB, free: 1.617 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001051/0.3883, allocations: 3.719 kB / 0.5208 GB, free: 1.617 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001376/0.3884, allocations: 21.83 kB / 0.5208 GB, free: 1.602 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 9.154e-05/0.3885, allocations: 47.06 kB / 0.5208 GB, free: 1.566 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001971/0.3888, allocations: 31.67 kB / 0.5209 GB, free: 1.551 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002028/0.389, allocations: 147.9 kB / 0.521 GB, free: 1.477 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001919/0.3892, allocations: 57.02 kB / 0.521 GB, free: 1.445 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001208/0.3893, allocations: 59.59 kB / 0.5211 GB, free: 1.418 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001259/0.3894, allocations: 70.33 kB / 0.5212 GB, free: 1.379 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.348e-05/0.3895, allocations: 12.22 kB / 0.5212 GB, free: 1.379 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.139e-05/0.3895, allocations: 12.25 kB / 0.5212 GB, free: 1.379 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.404e-05/0.3895, allocations: 24.12 kB / 0.5212 GB, free: 1.363 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.094e-05/0.3896, allocations: 66.64 kB / 0.5213 GB, free: 1.324 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002604/0.3899, allocations: 152.3 kB / 0.5214 GB, free: 1.266 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.3899, allocations: 0 / 0.5214 GB, free: 1.266 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3899, allocations: 0 / 0.5214 GB, free: 1.266 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.621e-06/0.3899, allocations: 0 / 0.5214 GB, free: 1.266 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0005517/0.3905, allocations: 442.2 kB / 0.5219 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.471e-05/0.3905, allocations: 10.22 kB / 0.5219 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.666e-05/0.3906, allocations: 46.11 kB / 0.5219 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.986e-05/0.3906, allocations: 12.81 kB / 0.5219 GB, free: 0.7969 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000265/0.3909, allocations: 213.7 kB / 0.5221 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.807e-05/0.3909, allocations: 10.06 kB / 0.5221 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.265e-05/0.391, allocations: 12.47 kB / 0.5221 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00028/0.3913, allocations: 134.1 kB / 0.5223 GB, free: 500 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.629e-05/0.3913, allocations: 0 / 0.5223 GB, free: 500 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.667e-05/0.3913, allocations: 10.2 kB / 0.5223 GB, free: 492 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.526e-06/0.3913, allocations: 3.312 kB / 0.5223 GB, free: 492 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001974/0.3915, allocations: 81.22 kB / 0.5224 GB, free: 468 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006849/0.3922, allocations: 474.6 kB / 0.5228 GB, free: 88 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002207/0.3924, allocations: 125.3 kB / 0.5229 GB, free: 20 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001368/0.3926, allocations: 57.12 kB / 0.523 GB, free: 15.99 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.862e-05/0.3926, allocations: 2.328 kB / 0.523 GB, free: 15.99 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.482e-05/0.3927, allocations: 39.97 kB / 0.523 GB, free: 15.95 MB / 398.1 MB Notification: Performance of pre-optimization done (n=13): time 1.292e-06/0.3927, allocations: 0 / 0.523 GB, free: 15.95 MB / 398.1 MB Notification: Performance of matching and sorting (n=19): time 0.001718/0.3944, allocations: 0.8012 MB / 0.5238 GB, free: 15.33 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.998e-05/0.3945, allocations: 53.5 kB / 0.5239 GB, free: 15.27 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001803/0.3946, allocations: 142.5 kB / 0.524 GB, free: 15.15 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.33e-05/0.3947, allocations: 35.02 kB / 0.524 GB, free: 15.11 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.459e-05/0.3948, allocations: 115.2 kB / 0.5241 GB, free: 15 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.153e-05/0.3949, allocations: 72.08 kB / 0.5242 GB, free: 14.95 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.415e-05/0.3949, allocations: 36.44 kB / 0.5242 GB, free: 14.92 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001828/0.3951, allocations: 321.5 kB / 0.5245 GB, free: 14.6 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001168/0.3952, allocations: 46.02 kB / 0.5246 GB, free: 14.59 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001501/0.3954, allocations: 86.88 kB / 0.5247 GB, free: 14.53 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002421/0.3957, allocations: 127.6 kB / 0.5248 GB, free: 14.45 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.3957, allocations: 3.938 kB / 0.5248 GB, free: 14.45 MB / 398.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004487/0.3961, allocations: 207 kB / 0.525 GB, free: 14.34 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.722e-05/0.3962, allocations: 11.28 kB / 0.525 GB, free: 14.34 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.812e-06/0.3962, allocations: 7.969 kB / 0.525 GB, free: 14.33 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001746/0.3964, allocations: 40.61 kB / 0.5251 GB, free: 14.32 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001877/0.3966, allocations: 37.03 kB / 0.5251 GB, free: 14.31 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001891/0.3985, allocations: 1.738 MB / 0.5268 GB, free: 12.65 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.706e-05/0.3986, allocations: 4.391 kB / 0.5268 GB, free: 12.65 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.063e-05/0.3986, allocations: 12.75 kB / 0.5268 GB, free: 12.64 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (17): * Single equations (assignments): 16 * 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.0001652/0.3988, allocations: 129.6 kB / 0.5269 GB, free: 12.52 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.241e-05/0.3988, allocations: 14.75 kB / 0.5269 GB, free: 12.51 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.206e-05/0.3989, allocations: 21.58 kB / 0.527 GB, free: 12.5 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.449e-06/0.3989, allocations: 5.25 kB / 0.527 GB, free: 12.49 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.163e-06/0.3989, allocations: 1.531 kB / 0.527 GB, free: 12.49 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.079e-06/0.3989, allocations: 1.406 kB / 0.527 GB, free: 12.49 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008902/0.3998, allocations: 0.5479 MB / 0.5275 GB, free: 12.07 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.3998, allocations: 1.344 kB / 0.5275 GB, free: 12.07 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001808/0.4, allocations: 32.75 kB / 0.5275 GB, free: 12.07 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001391/0.4001, allocations: 37.62 kB / 0.5276 GB, free: 12.05 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.486e-05/0.4002, allocations: 6.969 kB / 0.5276 GB, free: 12.04 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001378/0.4016, allocations: 1.48 MB / 0.529 GB, free: 10.58 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.4016, allocations: 3.938 kB / 0.529 GB, free: 10.57 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005627/0.4021, allocations: 345.5 kB / 0.5294 GB, free: 10.35 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.929e-05/0.4022, allocations: 90.5 kB / 0.5294 GB, free: 10.25 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.439e-05/0.4023, allocations: 6.078 kB / 0.5295 GB, free: 10.24 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.365e-05/0.4024, allocations: 7.297 kB / 0.5295 GB, free: 10.24 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.522e-05/0.4024, allocations: 19.97 kB / 0.5295 GB, free: 10.23 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.303e-05/0.4025, allocations: 8.938 kB / 0.5295 GB, free: 10.23 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001096/0.4026, allocations: 105.5 kB / 0.5296 GB, free: 10.14 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4026, allocations: 0 / 0.5296 GB, free: 10.14 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003616/0.4029, allocations: 42.38 kB / 0.5296 GB, free: 10.14 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (J1.phi,J1.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 (16): * Single equations (assignments): 15 * 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.0009805/0.4039, allocations: 0.8765 MB / 0.5305 GB, free: 9.379 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006042/0.4045, allocations: 256.1 kB / 0.5307 GB, free: 9.223 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.4046, allocations: 0 / 0.5307 GB, free: 9.223 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002964/0.4049, allocations: 201.1 kB / 0.5309 GB, free: 9.078 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003606/0.4052, allocations: 18.73 kB / 0.5309 GB, free: 9.07 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002836/0.4081, allocations: 2.058 MB / 0.5329 GB, free: 7.43 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004131/0.4085, allocations: 0.7214 MB / 0.5337 GB, free: 6.727 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 7.168e-05/0.4086, allocations: 14.08 kB / 0.5337 GB, free: 6.723 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.196e-05/0.4087, allocations: 39.39 kB / 0.5337 GB, free: 6.695 MB / 398.1 MB Notification: Performance of SimCode: time 2.7e-07/0.4087, allocations: 0 / 0.5337 GB, free: 6.695 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03108/0.4398, allocations: 3.425 MB / 0.537 GB, free: 5.039 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.65/11.09, allocations: 3.281 kB / 0.5371 GB, free: 5.039 MB / 398.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches