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.001118/0.001118, allocations: 114.4 kB / 17.78 MB, free: 5.266 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.001164/0.001164, allocations: 187.8 kB / 18.71 MB, free: 4.344 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.367/1.367, allocations: 222.9 MB / 242.4 MB, free: 15.06 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.2077/0.2077, allocations: 44.19 MB / 336.7 MB, free: 2.66 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001265/0.001265, allocations: 67.91 kB / 470 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3103/0.3116, allocations: 60.81 MB / 0.5184 GB, free: 3.285 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.006684/0.3183, allocations: 5.767 MB / 0.524 GB, free: 15.16 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004616/0.3229, allocations: 2.281 MB / 0.5263 GB, free: 13.5 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001213/0.3242, allocations: 41.41 kB / 0.5263 GB, free: 13.48 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007098/0.3249, allocations: 228.5 kB / 0.5265 GB, free: 13.33 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008128/0.3257, allocations: 180.6 kB / 0.5267 GB, free: 13.19 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00145/0.3272, allocations: 460.8 kB / 0.5271 GB, free: 12.92 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001981/0.3292, allocations: 1.108 MB / 0.5282 GB, free: 12.34 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001206/0.3304, allocations: 0.6259 MB / 0.5288 GB, free: 12 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007197/0.3312, allocations: 363.6 kB / 0.5292 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006931/0.3319, allocations: 391.8 kB / 0.5295 GB, free: 11.55 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002221/0.3321, allocations: 95.47 kB / 0.5296 GB, free: 11.55 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004065/0.3325, allocations: 156.9 kB / 0.5298 GB, free: 11.52 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000219/0.3327, allocations: 216.1 kB / 0.53 GB, free: 11.34 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004837/0.3332, allocations: 478.7 kB / 0.5304 GB, free: 11 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001557/0.3348, allocations: 1.265 MB / 0.5317 GB, free: 10.04 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.3348, allocations: 0 / 0.5317 GB, free: 10.04 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.3348, allocations: 1.188 kB / 0.5317 GB, free: 10.04 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.718e-05/0.3349, allocations: 0 / 0.5317 GB, free: 10.04 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.001636/0.3365, allocations: 1.133 MB / 0.5328 GB, free: 9.125 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.757e-05/0.3366, allocations: 8.812 kB / 0.5328 GB, free: 9.125 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001341/0.3367, allocations: 145.5 kB / 0.5329 GB, free: 9.004 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001442/0.3368, allocations: 102.3 kB / 0.533 GB, free: 8.953 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009061/0.3378, allocations: 0.5934 MB / 0.5336 GB, free: 8.441 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.532e-05/0.3378, allocations: 71.06 kB / 0.5337 GB, free: 8.406 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001187/0.3379, allocations: 91.09 kB / 0.5338 GB, free: 8.375 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001446/0.3394, allocations: 0.888 MB / 0.5346 GB, free: 7.77 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.428e-05/0.3394, allocations: 11.62 kB / 0.5346 GB, free: 7.762 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.968e-05/0.3395, allocations: 36.41 kB / 0.5347 GB, free: 7.734 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.144e-05/0.3395, allocations: 23.22 kB / 0.5347 GB, free: 7.734 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009513/0.3405, allocations: 0.5238 MB / 0.5352 GB, free: 7.48 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003417/0.3439, allocations: 3.594 MB / 0.5387 GB, free: 4.305 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005362/0.3445, allocations: 226.2 kB / 0.5389 GB, free: 4.184 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001692/0.3447, allocations: 103.2 kB / 0.539 GB, free: 4.129 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002153/0.3449, allocations: 250 kB / 0.5393 GB, free: 3.84 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.486e-05/0.3449, allocations: 36.84 kB / 0.5393 GB, free: 3.797 MB / 398.1 MB Notification: Performance of pre-optimization done (n=30): time 1.983e-06/0.3449, allocations: 0 / 0.5393 GB, free: 3.797 MB / 398.1 MB Notification: Performance of matching and sorting (n=35): time 0.002263/0.3472, allocations: 1.29 MB / 0.5406 GB, free: 2.855 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.792e-05/0.3472, allocations: 59.22 kB / 0.5406 GB, free: 2.789 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003807/0.3476, allocations: 406.3 kB / 0.541 GB, free: 2.539 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.296e-05/0.3477, allocations: 31.2 kB / 0.541 GB, free: 2.504 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002627/0.3479, allocations: 464.7 kB / 0.5415 GB, free: 2.094 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.421e-05/0.348, allocations: 130.1 kB / 0.5416 GB, free: 1.98 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000125/0.3482, allocations: 108.4 kB / 0.5417 GB, free: 1.902 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001294/0.3483, allocations: 358.7 kB / 0.5421 GB, free: 1.555 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002102/0.3485, allocations: 117.1 kB / 0.5422 GB, free: 1.5 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003226/0.3488, allocations: 308.9 kB / 0.5425 GB, free: 1.195 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005482/0.3494, allocations: 458.9 kB / 0.5429 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.3494, allocations: 1.156 kB / 0.5429 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0007856/0.3502, allocations: 0.5196 MB / 0.5434 GB, free: 0.5312 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.865e-05/0.3502, allocations: 6.719 kB / 0.5434 GB, free: 0.5312 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.015e-05/0.3503, allocations: 10.69 kB / 0.5434 GB, free: 0.5273 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001743/0.3504, allocations: 36.88 kB / 0.5435 GB, free: 0.5117 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003694/0.3508, allocations: 129.1 kB / 0.5436 GB, free: 492 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003731/0.3512, allocations: 0.5594 MB / 0.5441 GB, free: 15.93 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002172/0.3514, allocations: 21.3 kB / 0.5441 GB, free: 15.92 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.928e-05/0.3515, allocations: 29.16 kB / 0.5442 GB, free: 15.91 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.0002695/0.3518, allocations: 234.9 kB / 0.5444 GB, free: 15.71 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.075e-05/0.3518, allocations: 49.78 kB / 0.5444 GB, free: 15.69 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005899/0.3524, allocations: 335.1 kB / 0.5448 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.577e-06/0.3525, allocations: 4.031 kB / 0.5448 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.3525, allocations: 3.938 kB / 0.5448 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.703e-06/0.3525, allocations: 3.984 kB / 0.5448 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001408/0.3539, allocations: 1.048 MB / 0.5458 GB, free: 14.68 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.3539, allocations: 1.062 kB / 0.5458 GB, free: 14.68 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003544/0.3543, allocations: 82.36 kB / 0.5459 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001188/0.3544, allocations: 34 kB / 0.5459 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.363e-05/0.3544, allocations: 8.781 kB / 0.5459 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003032/0.3547, allocations: 0.5445 MB / 0.5465 GB, free: 14.09 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.3548, allocations: 6.469 kB / 0.5465 GB, free: 14.09 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000748/0.3555, allocations: 0.5548 MB / 0.547 GB, free: 13.71 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.519e-05/0.3556, allocations: 113.1 kB / 0.5471 GB, free: 13.59 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.769e-05/0.3557, allocations: 12.66 kB / 0.5471 GB, free: 13.58 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001588/0.3558, allocations: 15.23 kB / 0.5471 GB, free: 13.57 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.689e-05/0.3559, allocations: 27.19 kB / 0.5472 GB, free: 13.55 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.99e-05/0.3559, allocations: 9.688 kB / 0.5472 GB, free: 13.55 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000266/0.3562, allocations: 271.4 kB / 0.5474 GB, free: 13.39 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.542e-06/0.3562, allocations: 0 / 0.5474 GB, free: 13.39 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005536/0.3568, allocations: 133.8 kB / 0.5476 GB, free: 13.3 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.001001/0.3578, allocations: 1.115 MB / 0.5486 GB, free: 12.13 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005797/0.3584, allocations: 334 kB / 0.549 GB, free: 11.81 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.3584, allocations: 0 / 0.549 GB, free: 11.81 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002492/0.3586, allocations: 145.1 kB / 0.5491 GB, free: 11.67 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004995/0.3591, allocations: 74.25 kB / 0.5492 GB, free: 11.6 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005688/0.3648, allocations: 4.812 MB / 0.5539 GB, free: 6.504 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005229/0.3654, allocations: 0.9561 MB / 0.5548 GB, free: 5.523 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002029/0.3656, allocations: 60.47 kB / 0.5549 GB, free: 5.461 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003062/0.3659, allocations: 295.3 kB / 0.5551 GB, free: 5.172 MB / 414.1 MB Notification: Performance of SimCode: time 4.1e-07/0.3659, allocations: 4 kB / 0.5552 GB, free: 5.168 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03005/0.396, allocations: 9.487 MB / 0.5644 GB, free: 11.82 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.86/12.25, allocations: 15.84 kB / 0.5644 GB, free: 11.8 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Rotational_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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