Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.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.ForUsersGuide.Directions3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_Directions3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_Directions3",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.00135/0.00135, allocations: 118.4 kB / 17.78 MB, free: 5.258 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.00118/0.00118, 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.382/1.382, 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.2267/0.2267, allocations: 44.19 MB / 336.8 MB, free: 2.652 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001418/0.001418, allocations: 63.91 kB / 470 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3722/0.3736, allocations: 60.82 MB / 0.5184 GB, free: 3.297 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions3): time 0.003248/0.3769, allocations: 1.65 MB / 0.52 GB, free: 2.141 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003099/0.3773, allocations: 112.9 kB / 0.5201 GB, free: 2.055 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.802e-05/0.3774, allocations: 1.125 kB / 0.5201 GB, free: 2.055 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 5.673e-05/0.3774, allocations: 19 kB / 0.5201 GB, free: 2.043 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001262/0.3776, allocations: 37.53 kB / 0.5202 GB, free: 2.016 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001436/0.3777, allocations: 30.22 kB / 0.5202 GB, free: 1.996 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001671/0.3779, allocations: 128.7 kB / 0.5203 GB, free: 1.93 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001547/0.3781, allocations: 32.88 kB / 0.5204 GB, free: 1.914 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.341e-05/0.3782, allocations: 50.19 kB / 0.5204 GB, free: 1.891 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.897e-05/0.3783, allocations: 47.22 kB / 0.5205 GB, free: 1.867 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.511e-05/0.3783, allocations: 17.62 kB / 0.5205 GB, free: 1.859 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.398e-05/0.3783, allocations: 8.938 kB / 0.5205 GB, free: 1.859 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.021e-05/0.3784, allocations: 19.7 kB / 0.5205 GB, free: 1.848 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.181e-05/0.3784, allocations: 63.66 kB / 0.5206 GB, free: 1.809 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002107/0.3787, allocations: 124.9 kB / 0.5207 GB, free: 1.762 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.461e-06/0.3787, allocations: 0 / 0.5207 GB, free: 1.762 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.305e-06/0.3787, allocations: 1.281 kB / 0.5207 GB, free: 1.762 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.224e-05/0.3787, allocations: 0 / 0.5207 GB, free: 1.762 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0004866/0.3792, allocations: 404.5 kB / 0.5211 GB, free: 1.359 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.882e-05/0.3792, allocations: 13.41 kB / 0.5211 GB, free: 1.355 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.821e-05/0.3793, allocations: 46.94 kB / 0.5211 GB, free: 1.309 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.85e-05/0.3793, allocations: 15.03 kB / 0.5211 GB, free: 1.301 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001668/0.3795, allocations: 196.5 kB / 0.5213 GB, free: 1.086 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.388e-05/0.3795, allocations: 8.641 kB / 0.5213 GB, free: 1.082 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.343e-05/0.3796, allocations: 14.02 kB / 0.5213 GB, free: 1.078 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002297/0.3798, allocations: 127.5 kB / 0.5215 GB, free: 1 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.912e-05/0.3798, allocations: 9.875 kB / 0.5215 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.505e-05/0.3799, allocations: 9.375 kB / 0.5215 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.595e-06/0.3799, allocations: 2.562 kB / 0.5215 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001196/0.38, allocations: 56.06 kB / 0.5215 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006845/0.3807, allocations: 0.5368 MB / 0.5221 GB, free: 0.5 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001267/0.3808, allocations: 90.73 kB / 0.5222 GB, free: 440 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.027e-05/0.3809, allocations: 28.31 kB / 0.5222 GB, free: 416 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.534e-05/0.3809, allocations: 3.172 kB / 0.5222 GB, free: 416 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.2e-05/0.3809, allocations: 39.91 kB / 0.5222 GB, free: 368 kB / 382.1 MB Notification: Performance of pre-optimization done (n=8): time 1.352e-06/0.3809, allocations: 0 / 0.5222 GB, free: 368 kB / 382.1 MB Notification: Performance of matching and sorting (n=8): time 0.0005719/0.3815, allocations: 308.9 kB / 0.5225 GB, free: 88 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.865e-05/0.3816, allocations: 78.88 kB / 0.5226 GB, free: 15.99 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001345/0.3817, allocations: 122.8 kB / 0.5227 GB, free: 15.88 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.826e-05/0.3817, allocations: 33.64 kB / 0.5227 GB, free: 15.84 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.212e-05/0.3818, allocations: 119.6 kB / 0.5229 GB, free: 15.73 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.475e-05/0.3819, allocations: 37.97 kB / 0.5229 GB, free: 15.7 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.548e-05/0.3819, allocations: 37.83 kB / 0.5229 GB, free: 15.67 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001368/0.3821, allocations: 318.6 kB / 0.5232 GB, free: 15.36 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.569e-05/0.3822, allocations: 23.28 kB / 0.5233 GB, free: 15.35 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.08e-05/0.3822, allocations: 88.05 kB / 0.5233 GB, free: 15.25 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001634/0.3824, allocations: 124.9 kB / 0.5235 GB, free: 15.14 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.871e-06/0.3824, allocations: 5.25 kB / 0.5235 GB, free: 15.13 MB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003289/0.3828, allocations: 166.9 kB / 0.5236 GB, free: 15.04 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.3e-05/0.3828, allocations: 6.312 kB / 0.5236 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.348e-05/0.3828, allocations: 7.141 kB / 0.5236 GB, free: 15.03 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002112/0.383, allocations: 38.53 kB / 0.5237 GB, free: 15.01 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.888e-05/0.3831, allocations: 24.5 kB / 0.5237 GB, free: 15 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00221/0.3854, allocations: 2.728 MB / 0.5264 GB, free: 12.2 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.974e-05/0.3855, allocations: 18.98 kB / 0.5264 GB, free: 12.18 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.161e-05/0.3855, allocations: 6.609 kB / 0.5264 GB, free: 12.18 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (14): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001157/0.3856, allocations: 121.5 kB / 0.5265 GB, free: 12.06 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.227e-05/0.3857, allocations: 17.2 kB / 0.5265 GB, free: 12.05 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.816e-05/0.3857, allocations: 9.609 kB / 0.5265 GB, free: 12.04 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.998e-06/0.3857, allocations: 1.766 kB / 0.5265 GB, free: 12.04 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/0.3857, allocations: 2.25 kB / 0.5265 GB, free: 12.04 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.3857, allocations: 0.7031 kB / 0.5265 GB, free: 12.04 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002889/0.386, allocations: 202.2 kB / 0.5267 GB, free: 11.82 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.386, allocations: 1.188 kB / 0.5267 GB, free: 11.82 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.101e-05/0.3861, allocations: 14.06 kB / 0.5267 GB, free: 11.82 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001102/0.3862, allocations: 42.81 kB / 0.5268 GB, free: 11.79 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.38e-05/0.3863, allocations: 9.938 kB / 0.5268 GB, free: 11.79 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001968/0.3882, allocations: 2.723 MB / 0.5294 GB, free: 8.973 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.3883, allocations: 2.125 kB / 0.5294 GB, free: 8.973 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003316/0.3886, allocations: 306.9 kB / 0.5297 GB, free: 8.711 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.391e-05/0.3886, allocations: 84.38 kB / 0.5298 GB, free: 8.613 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.612e-05/0.3887, allocations: 1.5 kB / 0.5298 GB, free: 8.613 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.147e-05/0.3888, allocations: 9.5 kB / 0.5298 GB, free: 8.605 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.069e-05/0.3888, allocations: 15.78 kB / 0.5298 GB, free: 8.598 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.49e-06/0.3888, allocations: 1.406 kB / 0.5298 GB, free: 8.598 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.739e-05/0.3889, allocations: 91.61 kB / 0.5299 GB, free: 8.52 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3889, allocations: 0 / 0.5299 GB, free: 8.52 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003776/0.3893, allocations: 45.36 kB / 0.53 GB, free: 8.504 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (J1.w,J2.phi,J3.w,J4.phi) * 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 (6): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006563/0.3899, allocations: 0.8359 MB / 0.5308 GB, free: 7.711 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005485/0.3905, allocations: 309.2 kB / 0.5311 GB, free: 7.457 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.3905, allocations: 0 / 0.5311 GB, free: 7.457 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002901/0.3908, allocations: 257 kB / 0.5313 GB, free: 7.223 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005555/0.3914, allocations: 32.42 kB / 0.5314 GB, free: 7.207 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002161/0.3935, allocations: 1.977 MB / 0.5333 GB, free: 5.414 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003045/0.3939, allocations: 0.7091 MB / 0.534 GB, free: 4.715 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.17e-05/0.3939, allocations: 10.83 kB / 0.534 GB, free: 4.707 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.441e-05/0.394, allocations: 29.83 kB / 0.534 GB, free: 4.684 MB / 398.1 MB Notification: Performance of SimCode: time 4.71e-07/0.394, allocations: 0 / 0.534 GB, free: 4.684 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03305/0.4271, allocations: 3.005 MB / 0.537 GB, free: 3.484 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.861/10.29, allocations: 14.09 kB / 0.537 GB, free: 3.473 MB / 398.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_Directions3.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/Directions3/Directions3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches