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.001264/0.001264, 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.001426/0.001426, 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.501/1.501, allocations: 222.9 MB / 242.4 MB, free: 15.1 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.2442/0.2442, allocations: 44.19 MB / 336.8 MB, free: 2.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001669/0.001669, allocations: 63.89 kB / 470 MB, free: 13.71 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4227/0.4244, allocations: 60.82 MB / 0.5184 GB, free: 3.281 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003529/0.428, allocations: 1.904 MB / 0.5203 GB, free: 1.957 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009218/0.429, allocations: 0.4943 MB / 0.5207 GB, free: 1.602 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001076/0.4291, allocations: 6.312 kB / 0.5208 GB, free: 1.598 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001463/0.4292, allocations: 23.61 kB / 0.5208 GB, free: 1.582 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001061/0.4294, allocations: 38.36 kB / 0.5208 GB, free: 1.555 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002079/0.4296, allocations: 32 kB / 0.5208 GB, free: 1.539 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002104/0.4298, allocations: 148.4 kB / 0.521 GB, free: 1.465 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001887/0.43, allocations: 61.03 kB / 0.521 GB, free: 1.43 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001247/0.4301, allocations: 64.56 kB / 0.5211 GB, free: 1.398 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001403/0.4303, allocations: 63.12 kB / 0.5212 GB, free: 1.367 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.899e-05/0.4303, allocations: 11.75 kB / 0.5212 GB, free: 1.367 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.915e-05/0.4303, allocations: 11.84 kB / 0.5212 GB, free: 1.367 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.632e-05/0.4304, allocations: 32.06 kB / 0.5212 GB, free: 1.344 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8e-05/0.4305, allocations: 67.31 kB / 0.5213 GB, free: 1.305 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002599/0.4307, allocations: 146.4 kB / 0.5214 GB, free: 1.25 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.83e-06/0.4308, allocations: 0 / 0.5214 GB, free: 1.25 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.4308, allocations: 5.562 kB / 0.5214 GB, free: 1.246 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.042e-06/0.4308, allocations: 0 / 0.5214 GB, free: 1.246 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.000599/0.4314, allocations: 441.8 kB / 0.5218 GB, free: 0.8281 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.352e-05/0.4314, allocations: 9.844 kB / 0.5219 GB, free: 0.8281 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.805e-05/0.4315, allocations: 46.17 kB / 0.5219 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.283e-05/0.4315, allocations: 12.52 kB / 0.5219 GB, free: 0.7773 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002762/0.4318, allocations: 214 kB / 0.5221 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.374e-05/0.4318, allocations: 13.72 kB / 0.5221 GB, free: 0.543 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.912e-05/0.4319, allocations: 13.09 kB / 0.5221 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002765/0.4322, allocations: 129 kB / 0.5223 GB, free: 480 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.598e-05/0.4322, allocations: 1.812 kB / 0.5223 GB, free: 480 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.706e-05/0.4322, allocations: 5.062 kB / 0.5223 GB, free: 476 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.388e-06/0.4322, allocations: 3.562 kB / 0.5223 GB, free: 476 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002036/0.4324, allocations: 80.95 kB / 0.5224 GB, free: 452 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007346/0.4332, allocations: 478.8 kB / 0.5228 GB, free: 68 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002277/0.4334, allocations: 121.6 kB / 0.5229 GB, free: 4 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000152/0.4336, allocations: 60.5 kB / 0.523 GB, free: 15.97 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.803e-05/0.4336, allocations: 2.25 kB / 0.523 GB, free: 15.97 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.102e-05/0.4337, allocations: 36.19 kB / 0.523 GB, free: 15.93 MB / 398.1 MB Notification: Performance of pre-optimization done (n=13): time 1.182e-06/0.4337, allocations: 4 kB / 0.523 GB, free: 15.93 MB / 398.1 MB Notification: Performance of matching and sorting (n=19): time 0.001721/0.4354, allocations: 0.8007 MB / 0.5238 GB, free: 15.31 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.968e-05/0.4355, allocations: 57.72 kB / 0.5239 GB, free: 15.25 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001521/0.4356, allocations: 140.1 kB / 0.524 GB, free: 15.13 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.335e-05/0.4356, allocations: 33.64 kB / 0.524 GB, free: 15.09 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.543e-05/0.4357, allocations: 110.3 kB / 0.5241 GB, free: 14.99 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.165e-05/0.4358, allocations: 77.02 kB / 0.5242 GB, free: 14.93 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.387e-05/0.4359, allocations: 31.78 kB / 0.5242 GB, free: 14.9 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001398/0.436, allocations: 326.9 kB / 0.5245 GB, free: 14.58 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000109/0.4361, allocations: 40.97 kB / 0.5246 GB, free: 14.57 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000141/0.4363, allocations: 88.58 kB / 0.5247 GB, free: 14.51 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002349/0.4365, allocations: 133.4 kB / 0.5248 GB, free: 14.43 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.082e-06/0.4365, allocations: 0 / 0.5248 GB, free: 14.43 MB / 398.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004088/0.437, allocations: 209.7 kB / 0.525 GB, free: 14.32 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.058e-05/0.437, allocations: 13.31 kB / 0.525 GB, free: 14.32 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.713e-06/0.437, allocations: 0.75 kB / 0.525 GB, free: 14.32 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001882/0.4372, allocations: 40.73 kB / 0.5251 GB, free: 14.3 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001731/0.4374, allocations: 32.55 kB / 0.5251 GB, free: 14.3 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001691/0.4391, allocations: 1.733 MB / 0.5268 GB, free: 12.64 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001006/0.4392, allocations: 7.656 kB / 0.5268 GB, free: 12.64 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.432e-05/0.4392, allocations: 10.02 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.0001345/0.4394, allocations: 131 kB / 0.5269 GB, free: 12.51 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.203e-05/0.4394, allocations: 20.38 kB / 0.5269 GB, free: 12.49 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.983e-05/0.4395, allocations: 21.66 kB / 0.527 GB, free: 12.48 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.819e-06/0.4395, allocations: 5.375 kB / 0.527 GB, free: 12.48 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.074e-06/0.4395, allocations: 1.984 kB / 0.527 GB, free: 12.48 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.082e-06/0.4395, allocations: 2.859 kB / 0.527 GB, free: 12.48 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009614/0.4405, allocations: 0.5474 MB / 0.5275 GB, free: 12.05 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.4405, allocations: 0 / 0.5275 GB, free: 12.05 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001739/0.4407, allocations: 33.59 kB / 0.5275 GB, free: 12.05 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001336/0.4408, allocations: 34.08 kB / 0.5276 GB, free: 12.04 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.603e-05/0.4408, allocations: 5.906 kB / 0.5276 GB, free: 12.03 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001239/0.4421, allocations: 1.472 MB / 0.529 GB, free: 10.57 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.4421, allocations: 8.562 kB / 0.529 GB, free: 10.57 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005394/0.4426, allocations: 347.8 kB / 0.5293 GB, free: 10.34 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.764e-05/0.4427, allocations: 90.3 kB / 0.5294 GB, free: 10.24 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.107e-05/0.4427, allocations: 6.016 kB / 0.5294 GB, free: 10.23 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.905e-05/0.4428, allocations: 10.78 kB / 0.5295 GB, free: 10.23 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.618e-05/0.4429, allocations: 19.83 kB / 0.5295 GB, free: 10.22 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.138e-05/0.4429, allocations: 8.078 kB / 0.5295 GB, free: 10.21 MB / 398.1 MB Notification: Performance of sorting global known variables: time 7.979e-05/0.443, allocations: 106.7 kB / 0.5296 GB, free: 10.13 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.443, allocations: 0 / 0.5296 GB, free: 10.13 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003679/0.4434, allocations: 41.19 kB / 0.5296 GB, free: 10.12 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.0008417/0.4442, allocations: 0.8796 MB / 0.5305 GB, free: 9.363 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005584/0.4448, allocations: 256.1 kB / 0.5307 GB, free: 9.207 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.419e-06/0.4448, allocations: 4.125 kB / 0.5307 GB, free: 9.203 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002836/0.4451, allocations: 196.6 kB / 0.5309 GB, free: 9.062 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003557/0.4455, allocations: 19.14 kB / 0.5309 GB, free: 9.055 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002728/0.4482, allocations: 2.057 MB / 0.5329 GB, free: 7.414 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003275/0.4486, allocations: 0.7177 MB / 0.5336 GB, free: 6.715 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 7.054e-05/0.4487, allocations: 10.53 kB / 0.5337 GB, free: 6.715 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.602e-05/0.4487, allocations: 44.53 kB / 0.5337 GB, free: 6.684 MB / 398.1 MB Notification: Performance of SimCode: time 5.61e-07/0.4488, allocations: 0 / 0.5337 GB, free: 6.684 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02741/0.4762, allocations: 3.427 MB / 0.537 GB, free: 5.043 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.17/10.64, allocations: 7.141 kB / 0.537 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