Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions.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.ForUsersGuide.Directions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_Directions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_Directions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001625/0.001625, allocations: 118.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002095/0.002095, allocations: 201.2 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.454/1.454, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2211/0.2211, allocations: 46.1 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001523/0.001523, allocations: 75.88 kB / 480.8 MB, free: 4.59 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3433/0.3449, allocations: 62.43 MB / 0.5305 GB, free: 13.27 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions): time 0.003947/0.3489, allocations: 2.853 MB / 0.5333 GB, free: 11.03 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001578/0.3505, allocations: 0.8026 MB / 0.5341 GB, free: 10.36 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002362/0.3508, allocations: 13.53 kB / 0.5341 GB, free: 10.36 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002046/0.351, allocations: 60.81 kB / 0.5341 GB, free: 10.3 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002854/0.3513, allocations: 124.7 kB / 0.5343 GB, free: 10.2 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003509/0.3517, allocations: 120.3 kB / 0.5344 GB, free: 10.09 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004487/0.3521, allocations: 451.7 kB / 0.5348 GB, free: 9.82 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000301/0.3524, allocations: 197.9 kB / 0.535 GB, free: 9.703 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003017/0.3527, allocations: 179.9 kB / 0.5352 GB, free: 9.602 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002677/0.353, allocations: 187.9 kB / 0.5353 GB, free: 9.473 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.503e-05/0.3531, allocations: 34.66 kB / 0.5354 GB, free: 9.473 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001007/0.3532, allocations: 38.06 kB / 0.5354 GB, free: 9.473 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.146e-05/0.3533, allocations: 93.77 kB / 0.5355 GB, free: 9.391 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002017/0.3535, allocations: 202.4 kB / 0.5357 GB, free: 9.258 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005891/0.3541, allocations: 457.4 kB / 0.5361 GB, free: 8.93 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.3541, allocations: 5.219 kB / 0.5361 GB, free: 8.926 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.3541, allocations: 0 / 0.5361 GB, free: 8.926 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.129e-05/0.3541, allocations: 0 / 0.5361 GB, free: 8.926 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: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.001106/0.3552, allocations: 0.6793 MB / 0.5368 GB, free: 8.332 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.302e-05/0.3553, allocations: 13.31 kB / 0.5368 GB, free: 8.328 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.188e-05/0.3554, allocations: 75.47 kB / 0.5369 GB, free: 8.258 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003471/0.3557, allocations: 75.17 kB / 0.537 GB, free: 8.223 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004739/0.3562, allocations: 308.2 kB / 0.5373 GB, free: 7.922 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.392e-05/0.3563, allocations: 27.72 kB / 0.5373 GB, free: 7.91 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.303e-05/0.3563, allocations: 42.38 kB / 0.5373 GB, free: 7.895 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007283/0.3571, allocations: 380.5 kB / 0.5377 GB, free: 7.656 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.875e-05/0.3571, allocations: 6.016 kB / 0.5377 GB, free: 7.652 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.06e-05/0.3572, allocations: 15.56 kB / 0.5377 GB, free: 7.641 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.279e-05/0.3572, allocations: 8.938 kB / 0.5377 GB, free: 7.641 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005374/0.3577, allocations: 256 kB / 0.538 GB, free: 7.52 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001844/0.3596, allocations: 1.107 MB / 0.539 GB, free: 6.602 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005773/0.3602, allocations: 348.8 kB / 0.5394 GB, free: 6.402 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003112/0.3605, allocations: 174 kB / 0.5395 GB, free: 6.309 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.647e-05/0.3605, allocations: 8.125 kB / 0.5395 GB, free: 6.305 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.383e-05/0.3606, allocations: 44.59 kB / 0.5396 GB, free: 6.254 MB / 398.1 MB Notification: Performance of pre-optimization done (n=39): time 2.625e-06/0.3606, allocations: 0 / 0.5396 GB, free: 6.254 MB / 398.1 MB Notification: Performance of matching and sorting (n=57): time 0.004173/0.3648, allocations: 2.455 MB / 0.542 GB, free: 4.254 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001039/0.3649, allocations: 112.8 kB / 0.5421 GB, free: 4.125 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002941/0.3652, allocations: 250 kB / 0.5423 GB, free: 3.953 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.115e-05/0.3653, allocations: 32.17 kB / 0.5424 GB, free: 3.918 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001192/0.3654, allocations: 181 kB / 0.5425 GB, free: 3.754 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001565/0.3655, allocations: 212.9 kB / 0.5427 GB, free: 3.566 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001278/0.3657, allocations: 87.31 kB / 0.5428 GB, free: 3.504 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001495/0.3658, allocations: 357.8 kB / 0.5432 GB, free: 3.152 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002658/0.3661, allocations: 127.7 kB / 0.5433 GB, free: 3.098 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003226/0.3664, allocations: 226.2 kB / 0.5435 GB, free: 2.926 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006484/0.3671, allocations: 409.7 kB / 0.5439 GB, free: 2.656 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.3671, allocations: 1.156 kB / 0.5439 GB, free: 2.656 MB / 398.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001025/0.3681, allocations: 0.5531 MB / 0.5444 GB, free: 2.352 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.098e-05/0.3682, allocations: 5.438 kB / 0.5444 GB, free: 2.352 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.09e-05/0.3682, allocations: 4 kB / 0.5444 GB, free: 2.352 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003836/0.3686, allocations: 128.8 kB / 0.5446 GB, free: 2.277 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000403/0.369, allocations: 97.52 kB / 0.5447 GB, free: 2.254 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004352/0.3734, allocations: 5.218 MB / 0.5498 GB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003163/0.3737, allocations: 16.03 kB / 0.5498 GB, free: 12.87 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.71e-05/0.3738, allocations: 20 kB / 0.5498 GB, free: 12.85 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (51): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,5,100.0%), (1,5,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002182/0.374, allocations: 178.8 kB / 0.55 GB, free: 12.67 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001007/0.3741, allocations: 39.77 kB / 0.55 GB, free: 12.63 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.455e-05/0.3742, allocations: 42.17 kB / 0.55 GB, free: 12.59 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.123e-06/0.3742, allocations: 8 kB / 0.55 GB, free: 12.58 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.932e-05/0.3742, allocations: 8.125 kB / 0.5501 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.3742, allocations: 3.938 kB / 0.5501 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001925/0.3762, allocations: 1.333 MB / 0.5514 GB, free: 11.16 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.793e-06/0.3762, allocations: 4 kB / 0.5514 GB, free: 11.16 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004068/0.3766, allocations: 95.88 kB / 0.5515 GB, free: 11.06 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002993/0.3769, allocations: 102.4 kB / 0.5516 GB, free: 10.95 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.64e-05/0.377, allocations: 12.09 kB / 0.5516 GB, free: 10.94 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003307/0.3803, allocations: 4.439 MB / 0.5559 GB, free: 6.082 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.3803, allocations: 8.062 kB / 0.5559 GB, free: 6.074 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001333/0.3816, allocations: 0.9272 MB / 0.5568 GB, free: 5.113 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001341/0.3818, allocations: 112.9 kB / 0.5569 GB, free: 4.984 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.558e-05/0.3818, allocations: 12.06 kB / 0.5569 GB, free: 4.973 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002634/0.3821, allocations: 16 kB / 0.5569 GB, free: 4.957 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.892e-05/0.3822, allocations: 47.88 kB / 0.557 GB, free: 4.91 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.481e-05/0.3822, allocations: 19.98 kB / 0.557 GB, free: 4.891 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001608/0.3824, allocations: 174 kB / 0.5572 GB, free: 4.719 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3824, allocations: 0 / 0.5572 GB, free: 4.719 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007263/0.3832, allocations: 124 kB / 0.5573 GB, free: 4.598 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (J5.phi,J5.w,J3.phi,J3.w,J1.phi,J1.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 (48): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,3,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001606/0.3848, allocations: 1.476 MB / 0.5587 GB, free: 3.078 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001358/0.3861, allocations: 0.7793 MB / 0.5595 GB, free: 2.258 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.3862, allocations: 0 / 0.5595 GB, free: 2.258 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007679/0.3869, allocations: 0.5663 MB / 0.56 GB, free: 1.652 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006989/0.3876, allocations: 68.56 kB / 0.5601 GB, free: 1.59 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00561/0.3933, allocations: 4.182 MB / 0.5642 GB, free: 13.22 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004406/0.3938, allocations: 0.8241 MB / 0.565 GB, free: 12.36 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001524/0.3939, allocations: 39.25 kB / 0.565 GB, free: 12.32 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001841/0.3941, allocations: 135.4 kB / 0.5652 GB, free: 12.2 MB / 430.1 MB Notification: Performance of SimCode: time 1.252e-06/0.3941, allocations: 0 / 0.5652 GB, free: 12.2 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03715/0.4313, allocations: 8.366 MB / 0.5733 GB, free: 3.969 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.5/10.93, allocations: 4 kB / 0.5733 GB, free: 3.965 MB / 430.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_Directions.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/Directions/Directions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches