Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.GenerationOfFMUs,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.GenerationOfFMUs,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001121/0.001121, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001269/0.001269, allocations: 201.2 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.39/1.39, allocations: 227.4 MB / 246.9 MB, free: 10.55 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2177/0.2177, allocations: 46.09 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001515/0.001515, allocations: 75.88 kB / 480.8 MB, free: 4.59 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3318/0.3334, allocations: 62.44 MB / 0.5305 GB, free: 13.42 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.008172/0.3416, allocations: 5.777 MB / 0.5361 GB, free: 8.852 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.005315/0.347, allocations: 2.353 MB / 0.5384 GB, free: 6.922 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001523/0.3485, allocations: 41.62 kB / 0.5385 GB, free: 6.906 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008361/0.3494, allocations: 229 kB / 0.5387 GB, free: 6.703 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001133/0.3506, allocations: 190.5 kB / 0.5389 GB, free: 6.535 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001798/0.3524, allocations: 470.1 kB / 0.5393 GB, free: 6.148 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001819/0.3542, allocations: 1.123 MB / 0.5404 GB, free: 5.449 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001048/0.3553, allocations: 0.612 MB / 0.541 GB, free: 5.07 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007069/0.356, allocations: 374.5 kB / 0.5414 GB, free: 4.844 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005071/0.3566, allocations: 387.9 kB / 0.5417 GB, free: 4.562 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001486/0.3567, allocations: 95.22 kB / 0.5418 GB, free: 4.562 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004201/0.3571, allocations: 160.7 kB / 0.542 GB, free: 4.531 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003105/0.3575, allocations: 211.2 kB / 0.5422 GB, free: 4.359 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000627/0.3581, allocations: 474.7 kB / 0.5426 GB, free: 4.02 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00189/0.36, allocations: 1.286 MB / 0.5439 GB, free: 3.047 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.36, allocations: 1.156 kB / 0.5439 GB, free: 3.047 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.36, allocations: 4 kB / 0.5439 GB, free: 3.043 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.84e-05/0.36, allocations: 0 / 0.5439 GB, free: 3.043 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.001913/0.362, allocations: 1.156 MB / 0.545 GB, free: 2.105 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.135e-05/0.362, allocations: 9.969 kB / 0.545 GB, free: 2.105 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001986/0.3622, allocations: 145.8 kB / 0.5452 GB, free: 1.984 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003625/0.3626, allocations: 116 kB / 0.5453 GB, free: 1.926 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00107/0.3637, allocations: 0.6023 MB / 0.5459 GB, free: 1.406 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.827e-05/0.3638, allocations: 70.72 kB / 0.546 GB, free: 1.371 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001588/0.3639, allocations: 95.91 kB / 0.546 GB, free: 1.336 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001505/0.3654, allocations: 0.8846 MB / 0.5469 GB, free: 0.7344 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.274e-05/0.3655, allocations: 7.328 kB / 0.5469 GB, free: 0.7305 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.117e-05/0.3656, allocations: 44.48 kB / 0.547 GB, free: 0.6953 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.176e-05/0.3656, allocations: 26.97 kB / 0.547 GB, free: 0.6914 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001043/0.3667, allocations: 0.5251 MB / 0.5475 GB, free: 168 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003892/0.3706, allocations: 3.605 MB / 0.551 GB, free: 12.4 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005597/0.3712, allocations: 238.1 kB / 0.5512 GB, free: 12.16 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000177/0.3714, allocations: 100.8 kB / 0.5513 GB, free: 12.06 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002141/0.3716, allocations: 243.3 kB / 0.5516 GB, free: 11.77 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.449e-05/0.3716, allocations: 38.56 kB / 0.5516 GB, free: 11.72 MB / 414.1 MB Notification: Performance of pre-optimization done (n=30): time 2.104e-06/0.3716, allocations: 0 / 0.5516 GB, free: 11.72 MB / 414.1 MB Notification: Performance of matching and sorting (n=35): time 0.002453/0.3741, allocations: 1.309 MB / 0.5529 GB, free: 10.31 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.985e-05/0.3741, allocations: 59.34 kB / 0.5529 GB, free: 10.24 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004131/0.3746, allocations: 401.9 kB / 0.5533 GB, free: 9.848 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.327e-05/0.3746, allocations: 33.7 kB / 0.5534 GB, free: 9.809 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002844/0.3749, allocations: 487.5 kB / 0.5538 GB, free: 9.324 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001013/0.375, allocations: 138.8 kB / 0.554 GB, free: 9.188 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001295/0.3751, allocations: 102.1 kB / 0.5541 GB, free: 9.082 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000152/0.3753, allocations: 358.8 kB / 0.5544 GB, free: 8.723 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002072/0.3755, allocations: 117.1 kB / 0.5545 GB, free: 8.605 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000319/0.3758, allocations: 306.1 kB / 0.5548 GB, free: 8.223 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005651/0.3764, allocations: 463.6 kB / 0.5552 GB, free: 7.684 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.3764, allocations: 0 / 0.5552 GB, free: 7.684 MB / 414.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0007772/0.3772, allocations: 0.5212 MB / 0.5557 GB, free: 7.152 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.842e-05/0.3772, allocations: 8 kB / 0.5558 GB, free: 7.145 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.197e-06/0.3773, allocations: 4 kB / 0.5558 GB, free: 7.141 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001851/0.3774, allocations: 36.84 kB / 0.5558 GB, free: 7.102 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003751/0.3778, allocations: 131.8 kB / 0.5559 GB, free: 6.973 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003858/0.3782, allocations: 0.5524 MB / 0.5565 GB, free: 6.395 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00022/0.3785, allocations: 24.19 kB / 0.5565 GB, free: 6.371 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.944e-05/0.3785, allocations: 24 kB / 0.5565 GB, free: 6.348 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.0003295/0.3788, allocations: 229.6 kB / 0.5567 GB, free: 6.113 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001247/0.379, allocations: 55.61 kB / 0.5568 GB, free: 6.059 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006017/0.3796, allocations: 327 kB / 0.5571 GB, free: 5.727 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.021e-06/0.3796, allocations: 8 kB / 0.5571 GB, free: 5.719 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.127e-06/0.3796, allocations: 3.938 kB / 0.5571 GB, free: 5.715 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.304e-06/0.3796, allocations: 3.984 kB / 0.5571 GB, free: 5.711 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001418/0.381, allocations: 1.055 MB / 0.5581 GB, free: 4.582 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.194e-06/0.3811, allocations: 8.031 kB / 0.5581 GB, free: 4.574 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003447/0.3814, allocations: 79.89 kB / 0.5582 GB, free: 4.496 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000137/0.3816, allocations: 36.78 kB / 0.5583 GB, free: 4.457 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.51e-05/0.3816, allocations: 12 kB / 0.5583 GB, free: 4.445 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003184/0.3819, allocations: 0.5446 MB / 0.5588 GB, free: 3.875 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.3819, allocations: 0 / 0.5588 GB, free: 3.875 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007679/0.3827, allocations: 0.5609 MB / 0.5593 GB, free: 3.273 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.758e-05/0.3828, allocations: 120.8 kB / 0.5595 GB, free: 3.137 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.908e-05/0.3829, allocations: 8.094 kB / 0.5595 GB, free: 3.129 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001574/0.383, allocations: 11.94 kB / 0.5595 GB, free: 3.117 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.685e-05/0.3831, allocations: 27.91 kB / 0.5595 GB, free: 3.09 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.274e-05/0.3831, allocations: 15.98 kB / 0.5595 GB, free: 3.074 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002868/0.3834, allocations: 271.2 kB / 0.5598 GB, free: 2.812 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3834, allocations: 192 / 0.5598 GB, free: 2.812 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005466/0.384, allocations: 127.9 kB / 0.5599 GB, free: 2.688 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.00106/0.3851, allocations: 1.131 MB / 0.561 GB, free: 1.508 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006226/0.3857, allocations: 337.3 kB / 0.5613 GB, free: 1.18 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.3857, allocations: 4.062 kB / 0.5613 GB, free: 1.176 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002526/0.386, allocations: 143.8 kB / 0.5615 GB, free: 1.035 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005339/0.3865, allocations: 69.92 kB / 0.5615 GB, free: 0.9688 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00611/0.3926, allocations: 4.84 MB / 0.5663 GB, free: 11.85 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005766/0.3932, allocations: 0.9603 MB / 0.5672 GB, free: 10.86 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002059/0.3935, allocations: 60.47 kB / 0.5673 GB, free: 10.8 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003561/0.3938, allocations: 295.3 kB / 0.5675 GB, free: 10.51 MB / 430.1 MB Notification: Performance of SimCode: time 1.332e-06/0.3938, allocations: 0 / 0.5675 GB, free: 10.51 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03479/0.4286, allocations: 9.396 MB / 0.5767 GB, free: 1.242 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.07/12.49, allocations: 25.05 kB / 0.5767 GB, free: 1.227 MB / 430.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_Rotational_GenerationOfFMUs.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Rotational.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches