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.001461/0.001461, allocations: 118.4 kB / 17.79 MB, free: 5.254 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.001407/0.001407, allocations: 183.8 kB / 18.72 MB, free: 4.332 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.471/1.471, allocations: 222.9 MB / 242.4 MB, free: 15.05 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.2257/0.2257, allocations: 44.19 MB / 336.7 MB, free: 2.656 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001911/0.001911, allocations: 67.89 kB / 470 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3364/0.3383, allocations: 60.81 MB / 0.5184 GB, free: 3.27 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.006078/0.3444, allocations: 5.766 MB / 0.524 GB, free: 15.15 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004407/0.3488, allocations: 2.289 MB / 0.5263 GB, free: 13.48 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007574/0.3496, allocations: 36.28 kB / 0.5263 GB, free: 13.46 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005478/0.3502, allocations: 228.6 kB / 0.5265 GB, free: 13.31 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004862/0.3507, allocations: 177.2 kB / 0.5267 GB, free: 13.18 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001107/0.3518, allocations: 469.7 kB / 0.5271 GB, free: 12.9 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00128/0.3531, allocations: 1.108 MB / 0.5282 GB, free: 12.32 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000873/0.354, allocations: 0.6106 MB / 0.5288 GB, free: 12 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005209/0.3545, allocations: 368.3 kB / 0.5292 GB, free: 11.8 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004687/0.355, allocations: 395.9 kB / 0.5295 GB, free: 11.53 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001328/0.3552, allocations: 95.25 kB / 0.5296 GB, free: 11.53 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002893/0.3555, allocations: 158.2 kB / 0.5298 GB, free: 11.5 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002031/0.3557, allocations: 207.2 kB / 0.53 GB, free: 11.33 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004505/0.3561, allocations: 474.3 kB / 0.5304 GB, free: 10.99 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001466/0.3576, allocations: 1.272 MB / 0.5317 GB, free: 10.03 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.3576, allocations: 1.031 kB / 0.5317 GB, free: 10.03 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.3576, allocations: 0 / 0.5317 GB, free: 10.03 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.793e-05/0.3577, allocations: 0 / 0.5317 GB, free: 10.03 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.001762/0.3594, allocations: 1.164 MB / 0.5328 GB, free: 9.086 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.212e-05/0.3595, allocations: 13.36 kB / 0.5328 GB, free: 9.082 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001709/0.3597, allocations: 137.1 kB / 0.533 GB, free: 8.969 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001622/0.3598, allocations: 106.4 kB / 0.5331 GB, free: 8.914 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001014/0.3608, allocations: 0.594 MB / 0.5336 GB, free: 8.402 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.691e-05/0.3609, allocations: 66.53 kB / 0.5337 GB, free: 8.371 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001354/0.3611, allocations: 99.77 kB / 0.5338 GB, free: 8.332 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001549/0.3626, allocations: 0.8845 MB / 0.5347 GB, free: 7.73 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.247e-05/0.3627, allocations: 11.55 kB / 0.5347 GB, free: 7.723 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.13e-05/0.3628, allocations: 40.38 kB / 0.5347 GB, free: 7.691 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.268e-05/0.3628, allocations: 23.19 kB / 0.5347 GB, free: 7.691 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009956/0.3638, allocations: 0.5239 MB / 0.5352 GB, free: 7.438 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003977/0.3678, allocations: 3.61 MB / 0.5388 GB, free: 4.246 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000576/0.3684, allocations: 221.7 kB / 0.539 GB, free: 4.129 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002146/0.3686, allocations: 108.4 kB / 0.5391 GB, free: 4.07 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000244/0.3689, allocations: 250.1 kB / 0.5393 GB, free: 3.781 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.581e-05/0.3689, allocations: 40.34 kB / 0.5394 GB, free: 3.734 MB / 398.1 MB Notification: Performance of pre-optimization done (n=30): time 2.134e-06/0.3689, allocations: 0 / 0.5394 GB, free: 3.734 MB / 398.1 MB Notification: Performance of matching and sorting (n=35): time 0.002563/0.3715, allocations: 1.295 MB / 0.5406 GB, free: 2.789 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.337e-05/0.3715, allocations: 59.31 kB / 0.5407 GB, free: 2.723 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000465/0.372, allocations: 403.2 kB / 0.5411 GB, free: 2.477 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.065e-05/0.372, allocations: 30.67 kB / 0.5411 GB, free: 2.441 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003455/0.3724, allocations: 483 kB / 0.5416 GB, free: 2.016 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001137/0.3725, allocations: 139.1 kB / 0.5417 GB, free: 1.895 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001706/0.3727, allocations: 100 kB / 0.5418 GB, free: 1.824 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000186/0.3729, allocations: 365.4 kB / 0.5421 GB, free: 1.469 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002239/0.3731, allocations: 114.6 kB / 0.5422 GB, free: 1.418 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003693/0.3735, allocations: 307.8 kB / 0.5425 GB, free: 1.113 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000629/0.3741, allocations: 467.4 kB / 0.543 GB, free: 0.7188 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.3742, allocations: 1.469 kB / 0.543 GB, free: 0.7188 MB / 398.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0008532/0.375, allocations: 0.511 MB / 0.5435 GB, free: 460 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.103e-05/0.375, allocations: 10.19 kB / 0.5435 GB, free: 460 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.138e-05/0.3751, allocations: 11.12 kB / 0.5435 GB, free: 456 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002001/0.3753, allocations: 40.75 kB / 0.5435 GB, free: 436 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003936/0.3757, allocations: 133.3 kB / 0.5437 GB, free: 400 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004657/0.3762, allocations: 0.5512 MB / 0.5442 GB, free: 15.85 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002367/0.3764, allocations: 17.41 kB / 0.5442 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.396e-05/0.3765, allocations: 29.64 kB / 0.5443 GB, free: 15.83 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.00037/0.3768, allocations: 234.9 kB / 0.5445 GB, free: 15.64 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.055e-05/0.3769, allocations: 53.89 kB / 0.5445 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006565/0.3776, allocations: 330.5 kB / 0.5448 GB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.242e-06/0.3776, allocations: 3.656 kB / 0.5448 GB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.3776, allocations: 1.219 kB / 0.5449 GB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.195e-06/0.3776, allocations: 4.031 kB / 0.5449 GB, free: 15.4 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001571/0.3792, allocations: 1.059 MB / 0.5459 GB, free: 14.59 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.3792, allocations: 1.062 kB / 0.5459 GB, free: 14.59 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003595/0.3796, allocations: 83.02 kB / 0.546 GB, free: 14.57 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000134/0.3797, allocations: 33.5 kB / 0.546 GB, free: 14.55 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.754e-05/0.3798, allocations: 16.44 kB / 0.546 GB, free: 14.54 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003918/0.3802, allocations: 0.5488 MB / 0.5466 GB, free: 14 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.3802, allocations: 2.125 kB / 0.5466 GB, free: 14 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008341/0.381, allocations: 0.5629 MB / 0.5471 GB, free: 13.61 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001111/0.3811, allocations: 117.8 kB / 0.5472 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.783e-05/0.3812, allocations: 8.531 kB / 0.5472 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001572/0.3814, allocations: 7.281 kB / 0.5472 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.394e-05/0.3814, allocations: 31.75 kB / 0.5473 GB, free: 13.46 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.851e-05/0.3815, allocations: 16.55 kB / 0.5473 GB, free: 13.45 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003348/0.3818, allocations: 272.6 kB / 0.5475 GB, free: 13.28 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.104e-06/0.3818, allocations: 0 / 0.5475 GB, free: 13.28 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006309/0.3825, allocations: 130.7 kB / 0.5477 GB, free: 13.18 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.001226/0.3837, allocations: 1.108 MB / 0.5487 GB, free: 12.02 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0007183/0.3844, allocations: 330.2 kB / 0.5491 GB, free: 11.7 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.3845, allocations: 0 / 0.5491 GB, free: 11.7 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003005/0.3848, allocations: 141.4 kB / 0.5492 GB, free: 11.56 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005621/0.3853, allocations: 77.94 kB / 0.5493 GB, free: 11.49 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006815/0.3922, allocations: 4.841 MB / 0.554 GB, free: 6.359 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006815/0.3929, allocations: 0.96 MB / 0.5549 GB, free: 5.375 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001969/0.3931, allocations: 64.47 kB / 0.555 GB, free: 5.309 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003661/0.3935, allocations: 295.3 kB / 0.5553 GB, free: 5.02 MB / 414.1 MB Notification: Performance of SimCode: time 1.012e-06/0.3935, allocations: 384 / 0.5553 GB, free: 5.02 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03666/0.4301, allocations: 9.38 MB / 0.5644 GB, free: 11.78 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.37/12.8, allocations: 7.797 kB / 0.5644 GB, free: 11.77 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