Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions.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.Directions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_Directions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_Directions",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.001198/0.001198, 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.002058/0.002058, 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.414/1.414, allocations: 222.9 MB / 242.4 MB, free: 15.05 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.2208/0.2208, allocations: 44.18 MB / 336.8 MB, free: 2.645 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001487/0.001487, allocations: 59.89 kB / 470 MB, free: 13.65 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3577/0.3592, allocations: 60.82 MB / 0.5184 GB, free: 3.273 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions): time 0.003463/0.3627, allocations: 2.84 MB / 0.5212 GB, free: 1.277 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001157/0.3639, allocations: 0.7169 MB / 0.5219 GB, free: 0.75 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002085/0.3641, allocations: 7.062 kB / 0.5219 GB, free: 0.75 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001984/0.3643, allocations: 61.55 kB / 0.522 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002562/0.3646, allocations: 123.6 kB / 0.5221 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003087/0.3649, allocations: 97.44 kB / 0.5222 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000463/0.3654, allocations: 441.8 kB / 0.5226 GB, free: 352 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003122/0.3657, allocations: 187.9 kB / 0.5228 GB, free: 256 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000269/0.366, allocations: 174.6 kB / 0.5229 GB, free: 172 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002503/0.3662, allocations: 196.6 kB / 0.5231 GB, free: 68 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.113e-05/0.3663, allocations: 34.72 kB / 0.5232 GB, free: 68 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.59e-05/0.3664, allocations: 35.53 kB / 0.5232 GB, free: 68 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.8e-05/0.3665, allocations: 84.47 kB / 0.5233 GB, free: 8 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002561/0.3667, allocations: 207.4 kB / 0.5235 GB, free: 15.88 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006286/0.3674, allocations: 447.2 kB / 0.5239 GB, free: 15.7 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.007e-06/0.3674, allocations: 4 kB / 0.5239 GB, free: 15.7 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.405e-06/0.3674, allocations: 1.094 kB / 0.5239 GB, free: 15.7 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.437e-06/0.3674, allocations: 0 / 0.5239 GB, free: 15.7 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.001075/0.3685, allocations: 0.6801 MB / 0.5246 GB, free: 15.15 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.726e-05/0.3685, allocations: 9.375 kB / 0.5246 GB, free: 15.15 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001032/0.3687, allocations: 80.41 kB / 0.5246 GB, free: 15.08 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.488e-05/0.3687, allocations: 46.16 kB / 0.5247 GB, free: 15.06 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004605/0.3692, allocations: 283 kB / 0.525 GB, free: 14.8 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.686e-05/0.3692, allocations: 34.03 kB / 0.525 GB, free: 14.79 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.919e-05/0.3693, allocations: 40.56 kB / 0.525 GB, free: 14.77 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006874/0.37, allocations: 392.3 kB / 0.5254 GB, free: 14.58 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.117e-05/0.37, allocations: 2.078 kB / 0.5254 GB, free: 14.58 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.518e-05/0.3701, allocations: 20.11 kB / 0.5254 GB, free: 14.57 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.047e-05/0.3701, allocations: 9.625 kB / 0.5254 GB, free: 14.57 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005084/0.3706, allocations: 243.1 kB / 0.5257 GB, free: 14.5 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001706/0.3723, allocations: 1.097 MB / 0.5267 GB, free: 13.77 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005477/0.3729, allocations: 349.6 kB / 0.5271 GB, free: 13.59 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003139/0.3732, allocations: 182.1 kB / 0.5272 GB, free: 13.5 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.745e-05/0.3733, allocations: 8.062 kB / 0.5273 GB, free: 13.5 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.756e-05/0.3733, allocations: 41.25 kB / 0.5273 GB, free: 13.45 MB / 398.1 MB Notification: Performance of pre-optimization done (n=39): time 2.274e-06/0.3733, allocations: 0 / 0.5273 GB, free: 13.45 MB / 398.1 MB Notification: Performance of matching and sorting (n=57): time 0.003966/0.3773, allocations: 2.461 MB / 0.5297 GB, free: 11.45 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.371e-05/0.3774, allocations: 117.2 kB / 0.5298 GB, free: 11.31 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002524/0.3776, allocations: 241.8 kB / 0.53 GB, free: 11.14 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.073e-05/0.3777, allocations: 36.2 kB / 0.5301 GB, free: 11.1 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001226/0.3778, allocations: 181.5 kB / 0.5302 GB, free: 10.93 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001553/0.378, allocations: 208.8 kB / 0.5304 GB, free: 10.75 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001246/0.3781, allocations: 82.5 kB / 0.5305 GB, free: 10.7 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001493/0.3782, allocations: 351 kB / 0.5309 GB, free: 10.35 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002735/0.3785, allocations: 134.5 kB / 0.531 GB, free: 10.29 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003306/0.3789, allocations: 226.5 kB / 0.5312 GB, free: 10.12 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000633/0.3795, allocations: 397.7 kB / 0.5316 GB, free: 9.859 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.065e-06/0.3795, allocations: 0.8438 kB / 0.5316 GB, free: 9.859 MB / 398.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.00106/0.3806, allocations: 0.5612 MB / 0.5321 GB, free: 9.547 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.319e-05/0.3806, allocations: 6.156 kB / 0.5321 GB, free: 9.547 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.728e-06/0.3806, allocations: 3.094 kB / 0.5321 GB, free: 9.547 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003936/0.381, allocations: 124.6 kB / 0.5323 GB, free: 9.477 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003819/0.3814, allocations: 97.44 kB / 0.5324 GB, free: 9.453 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004244/0.3857, allocations: 5.209 MB / 0.5374 GB, free: 4.328 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000318/0.386, allocations: 23.55 kB / 0.5375 GB, free: 4.312 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.439e-05/0.3861, allocations: 23.12 kB / 0.5375 GB, free: 4.305 MB / 398.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.0002393/0.3863, allocations: 168.8 kB / 0.5376 GB, free: 4.148 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001068/0.3864, allocations: 38.3 kB / 0.5377 GB, free: 4.129 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.015e-05/0.3865, allocations: 48.73 kB / 0.5377 GB, free: 4.086 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.825e-06/0.3865, allocations: 6.5 kB / 0.5377 GB, free: 4.086 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.134e-05/0.3866, allocations: 9.031 kB / 0.5377 GB, free: 4.082 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.378e-06/0.3866, allocations: 11.97 kB / 0.5378 GB, free: 4.07 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002071/0.3887, allocations: 1.315 MB / 0.539 GB, free: 3.066 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.951e-06/0.3887, allocations: 5.312 kB / 0.539 GB, free: 3.062 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004304/0.3891, allocations: 95.17 kB / 0.5391 GB, free: 3.043 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002942/0.3894, allocations: 98.7 kB / 0.5392 GB, free: 2.98 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.288e-05/0.3895, allocations: 16.55 kB / 0.5392 GB, free: 2.969 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003705/0.3932, allocations: 4.431 MB / 0.5436 GB, free: 14.47 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.446e-06/0.3932, allocations: 1.281 kB / 0.5436 GB, free: 14.47 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001528/0.3948, allocations: 0.9238 MB / 0.5445 GB, free: 13.84 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001453/0.3949, allocations: 107.8 kB / 0.5446 GB, free: 13.72 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.846e-05/0.395, allocations: 12.72 kB / 0.5446 GB, free: 13.71 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002784/0.3953, allocations: 19.02 kB / 0.5446 GB, free: 13.7 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001242/0.3954, allocations: 50.84 kB / 0.5447 GB, free: 13.67 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.746e-05/0.3954, allocations: 11.94 kB / 0.5447 GB, free: 13.67 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001977/0.3956, allocations: 177.9 kB / 0.5448 GB, free: 13.54 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3956, allocations: 0 / 0.5448 GB, free: 13.54 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007772/0.3964, allocations: 121.8 kB / 0.545 GB, free: 13.52 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.001747/0.3982, allocations: 1.472 MB / 0.5464 GB, free: 12.35 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001445/0.3996, allocations: 0.78 MB / 0.5472 GB, free: 11.8 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/0.3997, allocations: 0 / 0.5472 GB, free: 11.8 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007994/0.4005, allocations: 0.5823 MB / 0.5477 GB, free: 11.34 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007253/0.4012, allocations: 68.89 kB / 0.5478 GB, free: 11.3 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0063/0.4075, allocations: 4.151 MB / 0.5518 GB, free: 7.945 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004539/0.408, allocations: 0.8202 MB / 0.5526 GB, free: 7.098 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001614/0.4082, allocations: 35.28 kB / 0.5527 GB, free: 7.062 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001766/0.4084, allocations: 127.4 kB / 0.5528 GB, free: 6.941 MB / 414.1 MB Notification: Performance of SimCode: time 8.51e-07/0.4084, allocations: 0 / 0.5528 GB, free: 6.941 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0369/0.4453, allocations: 8.277 MB / 0.5609 GB, free: 14.8 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.43/10.88, allocations: 3.609 kB / 0.5609 GB, free: 14.8 MB / 430.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_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_4_0_0_ModelicaTest_Rotational_ForUsersGuide_Directions.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches