Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.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.GenerationOfFMUs,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.GenerationOfFMUs,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_GenerationOfFMUs",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.001759/0.001759, 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.002398/0.002398, 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.456/1.456, allocations: 222.9 MB / 242.4 MB, free: 15.08 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.228/0.228, allocations: 44.19 MB / 336.8 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001397/0.001397, allocations: 67.89 kB / 470 MB, free: 13.7 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3755/0.3769, allocations: 60.82 MB / 0.5184 GB, free: 3.289 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.006459/0.3834, allocations: 5.759 MB / 0.524 GB, free: 15.17 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004557/0.388, allocations: 2.289 MB / 0.5263 GB, free: 13.5 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001481/0.3895, allocations: 39.72 kB / 0.5263 GB, free: 13.48 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008124/0.3904, allocations: 229.1 kB / 0.5265 GB, free: 13.33 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008975/0.3913, allocations: 180.8 kB / 0.5267 GB, free: 13.2 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001661/0.393, allocations: 462.7 kB / 0.5271 GB, free: 12.93 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001689/0.3947, allocations: 1.11 MB / 0.5282 GB, free: 12.35 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000938/0.3957, allocations: 0.6109 MB / 0.5288 GB, free: 12.02 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007287/0.3964, allocations: 368.4 kB / 0.5292 GB, free: 11.83 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005413/0.397, allocations: 392.3 kB / 0.5295 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001485/0.3971, allocations: 98.31 kB / 0.5296 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003326/0.3975, allocations: 157.7 kB / 0.5298 GB, free: 11.54 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000199/0.3977, allocations: 212.7 kB / 0.53 GB, free: 11.37 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004803/0.3982, allocations: 470.1 kB / 0.5304 GB, free: 11.03 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001787/0.4, allocations: 1.276 MB / 0.5317 GB, free: 10.07 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.123e-06/0.4, allocations: 1.031 kB / 0.5317 GB, free: 10.07 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.4, allocations: 0 / 0.5317 GB, free: 10.07 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.232e-05/0.4, allocations: 0 / 0.5317 GB, free: 10.07 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 0.002292/0.4023, allocations: 1.167 MB / 0.5328 GB, free: 9.117 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.285e-05/0.4024, allocations: 9.938 kB / 0.5328 GB, free: 9.117 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001829/0.4026, allocations: 137.4 kB / 0.533 GB, free: 9.004 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002479/0.4028, allocations: 106.3 kB / 0.5331 GB, free: 8.949 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001306/0.4042, allocations: 0.5973 MB / 0.5336 GB, free: 8.434 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.13e-05/0.4042, allocations: 66.91 kB / 0.5337 GB, free: 8.402 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001541/0.4044, allocations: 95.23 kB / 0.5338 GB, free: 8.367 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001831/0.4062, allocations: 0.8882 MB / 0.5347 GB, free: 7.762 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.6e-05/0.4063, allocations: 16.03 kB / 0.5347 GB, free: 7.75 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.364e-05/0.4064, allocations: 36.56 kB / 0.5347 GB, free: 7.723 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.017e-05/0.4065, allocations: 23.25 kB / 0.5347 GB, free: 7.723 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001242/0.4077, allocations: 0.5246 MB / 0.5353 GB, free: 7.469 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004028/0.4117, allocations: 3.614 MB / 0.5388 GB, free: 4.273 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000593/0.4124, allocations: 219.4 kB / 0.539 GB, free: 4.156 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001931/0.4126, allocations: 99.56 kB / 0.5391 GB, free: 4.105 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002463/0.4128, allocations: 258.5 kB / 0.5393 GB, free: 3.809 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.485e-05/0.4129, allocations: 36 kB / 0.5394 GB, free: 3.766 MB / 398.1 MB Notification: Performance of pre-optimization done (n=30): time 1.994e-06/0.4129, allocations: 1.406 kB / 0.5394 GB, free: 3.766 MB / 398.1 MB Notification: Performance of matching and sorting (n=35): time 0.002867/0.4157, allocations: 1.298 MB / 0.5406 GB, free: 2.816 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.06e-05/0.4158, allocations: 59.59 kB / 0.5407 GB, free: 2.75 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005055/0.4163, allocations: 403.1 kB / 0.5411 GB, free: 2.504 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.02e-05/0.4164, allocations: 34.8 kB / 0.5411 GB, free: 2.465 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003529/0.4167, allocations: 482.6 kB / 0.5416 GB, free: 2.039 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000113/0.4168, allocations: 138.8 kB / 0.5417 GB, free: 1.918 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001773/0.417, allocations: 96.61 kB / 0.5418 GB, free: 1.852 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001813/0.4172, allocations: 365.7 kB / 0.5421 GB, free: 1.496 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002458/0.4175, allocations: 114.3 kB / 0.5423 GB, free: 1.445 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000407/0.4179, allocations: 308 kB / 0.5425 GB, free: 1.141 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006659/0.4186, allocations: 466.9 kB / 0.543 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.127e-06/0.4186, allocations: 0.9375 kB / 0.543 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0009009/0.4195, allocations: 0.5116 MB / 0.5435 GB, free: 488 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.58e-05/0.4195, allocations: 7.25 kB / 0.5435 GB, free: 488 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.308e-05/0.4195, allocations: 15.12 kB / 0.5435 GB, free: 480 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002048/0.4197, allocations: 36.59 kB / 0.5435 GB, free: 464 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004041/0.4202, allocations: 134 kB / 0.5437 GB, free: 428 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004188/0.4206, allocations: 0.5547 MB / 0.5442 GB, free: 15.87 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002353/0.4208, allocations: 17 kB / 0.5442 GB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.401e-05/0.4209, allocations: 29.83 kB / 0.5443 GB, free: 15.86 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * 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 (68): * Single equations (assignments): 67 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0003248/0.4212, allocations: 226.8 kB / 0.5445 GB, free: 15.67 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.292e-05/0.4213, allocations: 57.8 kB / 0.5445 GB, free: 15.63 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006793/0.422, allocations: 335.4 kB / 0.5449 GB, free: 15.43 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.544e-06/0.422, allocations: 3.406 kB / 0.5449 GB, free: 15.43 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/0.422, allocations: 0 / 0.5449 GB, free: 15.43 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.967e-06/0.4221, allocations: 5.172 kB / 0.5449 GB, free: 15.43 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0017/0.4238, allocations: 1.056 MB / 0.5459 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.4238, allocations: 0 / 0.5459 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003819/0.4242, allocations: 82.77 kB / 0.546 GB, free: 14.6 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001441/0.4243, allocations: 33.47 kB / 0.546 GB, free: 14.58 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.67e-05/0.4244, allocations: 9.406 kB / 0.546 GB, free: 14.58 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003448/0.4247, allocations: 0.5572 MB / 0.5466 GB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.4247, allocations: 1.844 kB / 0.5466 GB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008211/0.4255, allocations: 0.5586 MB / 0.5471 GB, free: 13.64 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000124/0.4257, allocations: 116.7 kB / 0.5472 GB, free: 13.52 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.399e-05/0.4257, allocations: 8 kB / 0.5472 GB, free: 13.51 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001606/0.4259, allocations: 8.406 kB / 0.5472 GB, free: 13.51 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.22e-05/0.426, allocations: 26.94 kB / 0.5473 GB, free: 13.49 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.578e-05/0.426, allocations: 25.73 kB / 0.5473 GB, free: 13.48 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003215/0.4264, allocations: 267.3 kB / 0.5475 GB, free: 13.31 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4264, allocations: 0 / 0.5475 GB, free: 13.31 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006927/0.4271, allocations: 130.9 kB / 0.5477 GB, free: 13.2 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (directInertia.inertia.w,directInertia.torqueToAngle.phi,inertia2a.w,torqueToAngle2a.y,inertia2b.w,torqueToAngle2b.y,inertia3a.phi,inertia3a.w,inertia3b.phi,inertia3b.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 (33): * Single equations (assignments): 32 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001152/0.4282, allocations: 1.114 MB / 0.5488 GB, free: 12.04 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006753/0.4289, allocations: 328.5 kB / 0.5491 GB, free: 11.72 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.4289, allocations: 1.688 kB / 0.5491 GB, free: 11.72 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002705/0.4292, allocations: 145.1 kB / 0.5492 GB, free: 11.58 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005982/0.4298, allocations: 74.56 kB / 0.5493 GB, free: 11.51 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006402/0.4362, allocations: 4.848 MB / 0.554 GB, free: 6.375 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005328/0.4368, allocations: 0.9522 MB / 0.5549 GB, free: 5.398 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002176/0.437, allocations: 72.45 kB / 0.555 GB, free: 5.324 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003516/0.4374, allocations: 291.3 kB / 0.5553 GB, free: 5.039 MB / 414.1 MB Notification: Performance of SimCode: time 1.142e-06/0.4374, allocations: 0 / 0.5553 GB, free: 5.039 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03551/0.4729, allocations: 9.37 MB / 0.5644 GB, free: 11.79 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.92/12.39, allocations: 12.12 kB / 0.5644 GB, free: 11.79 MB / 430.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 ModelicaTest_4_0_0_ModelicaTest_Rotational_GenerationOfFMUs.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches