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.001255/0.001255, allocations: 112.7 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.001244/0.001244, allocations: 180.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.427/1.427, allocations: 222.9 MB / 242.4 MB, free: 15.09 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.2185/0.2185, allocations: 44.19 MB / 336.8 MB, free: 2.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001924/0.001924, allocations: 63.89 kB / 470 MB, free: 13.7 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3162/0.3181, allocations: 60.84 MB / 0.5184 GB, free: 3.289 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.006133/0.3242, allocations: 5.758 MB / 0.524 GB, free: 15.18 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.005128/0.3293, allocations: 2.293 MB / 0.5263 GB, free: 13.51 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001503/0.3308, allocations: 41.34 kB / 0.5263 GB, free: 13.5 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006853/0.3315, allocations: 231.4 kB / 0.5265 GB, free: 13.34 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007054/0.3322, allocations: 187.8 kB / 0.5267 GB, free: 13.2 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001513/0.3337, allocations: 459.8 kB / 0.5272 GB, free: 12.94 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001665/0.3354, allocations: 1.099 MB / 0.5282 GB, free: 12.36 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007358/0.3361, allocations: 425.8 kB / 0.5286 GB, free: 12.11 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005318/0.3367, allocations: 372.6 kB / 0.529 GB, free: 11.91 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004582/0.3371, allocations: 398 kB / 0.5294 GB, free: 11.63 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001074/0.3372, allocations: 94.88 kB / 0.5295 GB, free: 11.63 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002948/0.3375, allocations: 153.8 kB / 0.5296 GB, free: 11.61 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002062/0.3377, allocations: 216.3 kB / 0.5298 GB, free: 11.43 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004401/0.3382, allocations: 478.1 kB / 0.5303 GB, free: 11.09 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001532/0.3397, allocations: 1.269 MB / 0.5315 GB, free: 10.13 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.3397, allocations: 0 / 0.5315 GB, free: 10.13 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3397, allocations: 0 / 0.5315 GB, free: 10.13 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.802e-05/0.3398, allocations: 0 / 0.5315 GB, free: 10.13 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.00189/0.3416, allocations: 1.16 MB / 0.5326 GB, free: 9.188 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.517e-05/0.3417, allocations: 9.781 kB / 0.5327 GB, free: 9.188 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001828/0.3419, allocations: 137.3 kB / 0.5328 GB, free: 9.074 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001984/0.3421, allocations: 106.5 kB / 0.5329 GB, free: 9.02 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001159/0.3432, allocations: 0.6021 MB / 0.5335 GB, free: 8.5 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.658e-05/0.3433, allocations: 69.66 kB / 0.5335 GB, free: 8.465 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001307/0.3434, allocations: 91.64 kB / 0.5336 GB, free: 8.434 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001545/0.345, allocations: 0.8925 MB / 0.5345 GB, free: 7.824 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.783e-05/0.345, allocations: 7.141 kB / 0.5345 GB, free: 7.82 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.424e-05/0.3451, allocations: 37.09 kB / 0.5345 GB, free: 7.793 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.11e-05/0.3451, allocations: 31.03 kB / 0.5346 GB, free: 7.785 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001065/0.3462, allocations: 0.5231 MB / 0.5351 GB, free: 7.531 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003924/0.3501, allocations: 3.611 MB / 0.5386 GB, free: 4.34 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005978/0.3507, allocations: 216.2 kB / 0.5388 GB, free: 4.219 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001895/0.3509, allocations: 95.22 kB / 0.5389 GB, free: 4.168 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002546/0.3511, allocations: 249.7 kB / 0.5391 GB, free: 3.879 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.922e-05/0.3512, allocations: 36.72 kB / 0.5392 GB, free: 3.836 MB / 398.1 MB Notification: Performance of pre-optimization done (n=30): time 2.114e-06/0.3512, allocations: 0 / 0.5392 GB, free: 3.836 MB / 398.1 MB Notification: Performance of matching and sorting (n=35): time 0.002545/0.3537, allocations: 1.299 MB / 0.5404 GB, free: 2.887 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.716e-05/0.3538, allocations: 58.12 kB / 0.5405 GB, free: 2.82 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004388/0.3542, allocations: 403.8 kB / 0.5409 GB, free: 2.574 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.154e-05/0.3542, allocations: 30.61 kB / 0.5409 GB, free: 2.539 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003174/0.3545, allocations: 478 kB / 0.5414 GB, free: 2.117 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001135/0.3547, allocations: 144.1 kB / 0.5415 GB, free: 1.992 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001368/0.3548, allocations: 100.1 kB / 0.5416 GB, free: 1.922 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001764/0.355, allocations: 361.4 kB / 0.5419 GB, free: 1.57 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002129/0.3552, allocations: 118.2 kB / 0.5421 GB, free: 1.516 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003706/0.3556, allocations: 307.9 kB / 0.5424 GB, free: 1.211 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006164/0.3562, allocations: 459.1 kB / 0.5428 GB, free: 0.8242 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.516e-06/0.3562, allocations: 1.188 kB / 0.5428 GB, free: 0.8242 MB / 398.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0008072/0.357, allocations: 0.5144 MB / 0.5433 GB, free: 0.5508 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.102e-05/0.357, allocations: 12.14 kB / 0.5433 GB, free: 0.5469 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.888e-06/0.357, allocations: 6.188 kB / 0.5433 GB, free: 0.5469 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001963/0.3572, allocations: 37.31 kB / 0.5433 GB, free: 0.5312 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003839/0.3576, allocations: 129.9 kB / 0.5435 GB, free: 0.5 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004522/0.358, allocations: 0.5592 MB / 0.544 GB, free: 15.95 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002179/0.3583, allocations: 16.69 kB / 0.544 GB, free: 15.94 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.388e-05/0.3583, allocations: 25.75 kB / 0.5441 GB, free: 15.94 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.0003127/0.3586, allocations: 234.2 kB / 0.5443 GB, free: 15.74 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.055e-05/0.3587, allocations: 58.33 kB / 0.5443 GB, free: 15.71 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006306/0.3593, allocations: 330.4 kB / 0.5447 GB, free: 15.51 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.429e-06/0.3593, allocations: 4.406 kB / 0.5447 GB, free: 15.51 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.172e-06/0.3593, allocations: 7.922 kB / 0.5447 GB, free: 15.5 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.099e-06/0.3593, allocations: 0 / 0.5447 GB, free: 15.5 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001542/0.3609, allocations: 1.063 MB / 0.5457 GB, free: 14.69 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/0.3609, allocations: 1.062 kB / 0.5457 GB, free: 14.69 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003625/0.3613, allocations: 78.52 kB / 0.5458 GB, free: 14.67 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001308/0.3614, allocations: 41.19 kB / 0.5458 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.46e-05/0.3614, allocations: 8.656 kB / 0.5458 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003736/0.3618, allocations: 0.5459 MB / 0.5464 GB, free: 14.1 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.3618, allocations: 1.156 kB / 0.5464 GB, free: 14.1 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007902/0.3626, allocations: 0.5594 MB / 0.5469 GB, free: 13.71 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001024/0.3627, allocations: 117.9 kB / 0.547 GB, free: 13.59 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.476e-05/0.3627, allocations: 15.64 kB / 0.547 GB, free: 13.58 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001607/0.3629, allocations: 6.75 kB / 0.547 GB, free: 13.57 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.454e-05/0.363, allocations: 31.44 kB / 0.5471 GB, free: 13.55 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.314e-05/0.363, allocations: 13.34 kB / 0.5471 GB, free: 13.55 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002932/0.3633, allocations: 271.2 kB / 0.5473 GB, free: 13.38 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3633, allocations: 1.156 kB / 0.5473 GB, free: 13.38 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005473/0.3638, allocations: 122.1 kB / 0.5475 GB, free: 13.37 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.001289/0.3651, allocations: 1.118 MB / 0.5486 GB, free: 12.26 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006872/0.3658, allocations: 308.5 kB / 0.5488 GB, free: 11.96 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.3658, allocations: 1.688 kB / 0.5488 GB, free: 11.96 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002785/0.3661, allocations: 137 kB / 0.549 GB, free: 11.82 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005637/0.3666, allocations: 77.2 kB / 0.5491 GB, free: 11.75 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006395/0.373, allocations: 4.857 MB / 0.5538 GB, free: 6.609 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006092/0.3736, allocations: 0.9522 MB / 0.5547 GB, free: 5.633 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001993/0.3738, allocations: 64.48 kB / 0.5548 GB, free: 5.566 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003594/0.3742, allocations: 291.3 kB / 0.5551 GB, free: 5.281 MB / 414.1 MB Notification: Performance of SimCode: time 8.71e-07/0.3742, allocations: 0 / 0.5551 GB, free: 5.281 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04003/0.4142, allocations: 9.447 MB / 0.5643 GB, free: 11.96 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.12/12.54, allocations: 16.8 kB / 0.5643 GB, free: 11.96 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