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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001973/0.001973, allocations: 112.4 kB / 21.1 MB, free: 0.7656 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002539/0.002539, allocations: 190.4 kB / 24.36 MB, free: 4.207 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.516/1.516, allocations: 225.6 MB / 253.1 MB, free: 13.03 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2371/0.2371, allocations: 44.9 MB / 353.2 MB, free: 11.93 MB / 286.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002239/0.002239, allocations: 63.89 kB / 496.8 MB, free: 1.645 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3751/0.3774, allocations: 64.29 MB / 0.5479 GB, free: 12.91 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions3): time 0.003733/0.3811, allocations: 1.663 MB / 0.5496 GB, free: 11.61 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004247/0.3815, allocations: 111.8 kB / 0.5497 GB, free: 11.51 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.152e-05/0.3816, allocations: 5.062 kB / 0.5497 GB, free: 11.51 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 6.904e-05/0.3817, allocations: 14.45 kB / 0.5497 GB, free: 11.5 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001351/0.3818, allocations: 39.34 kB / 0.5497 GB, free: 11.46 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001505/0.382, allocations: 27.84 kB / 0.5497 GB, free: 11.44 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000191/0.3822, allocations: 137.5 kB / 0.5499 GB, free: 11.35 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001517/0.3823, allocations: 24.3 kB / 0.5499 GB, free: 11.34 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001012/0.3824, allocations: 54.19 kB / 0.5499 GB, free: 11.3 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.445e-05/0.3825, allocations: 48.59 kB / 0.55 GB, free: 11.27 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.498e-05/0.3825, allocations: 8.969 kB / 0.55 GB, free: 11.27 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.516e-05/0.3826, allocations: 9.906 kB / 0.55 GB, free: 11.27 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.327e-05/0.3826, allocations: 22.77 kB / 0.55 GB, free: 11.25 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 8.093e-05/0.3827, allocations: 61.66 kB / 0.5501 GB, free: 11.21 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002014/0.3829, allocations: 118.8 kB / 0.5502 GB, free: 11.13 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.515e-06/0.3829, allocations: 5.531 kB / 0.5502 GB, free: 11.13 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.3829, allocations: 0 / 0.5502 GB, free: 11.13 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.503e-05/0.3829, allocations: 3.984 kB / 0.5502 GB, free: 11.12 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0005462/0.3835, allocations: 331.1 kB / 0.5505 GB, free: 10.8 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.867e-05/0.3835, allocations: 10.52 kB / 0.5505 GB, free: 10.8 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.835e-05/0.3836, allocations: 46.83 kB / 0.5506 GB, free: 10.75 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.576e-05/0.3836, allocations: 14.38 kB / 0.5506 GB, free: 10.74 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001824/0.3838, allocations: 132 kB / 0.5507 GB, free: 10.6 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.731e-05/0.3838, allocations: 9.859 kB / 0.5507 GB, free: 10.59 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.409e-05/0.3838, allocations: 16.19 kB / 0.5507 GB, free: 10.59 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002363/0.3841, allocations: 131.4 kB / 0.5509 GB, free: 10.49 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.935e-05/0.3841, allocations: 5.406 kB / 0.5509 GB, free: 10.48 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.599e-05/0.3841, allocations: 5.156 kB / 0.5509 GB, free: 10.48 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.014e-05/0.3841, allocations: 6.891 kB / 0.5509 GB, free: 10.48 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001188/0.3842, allocations: 55.38 kB / 0.5509 GB, free: 10.45 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000782/0.385, allocations: 487.7 kB / 0.5514 GB, free: 10 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001447/0.3852, allocations: 82.69 kB / 0.5515 GB, free: 9.93 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.131e-05/0.3852, allocations: 37.23 kB / 0.5515 GB, free: 9.895 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.485e-05/0.3852, allocations: 5.406 kB / 0.5515 GB, free: 9.891 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.475e-05/0.3853, allocations: 36.08 kB / 0.5516 GB, free: 9.848 MB / 398.1 MB Notification: Performance of pre-optimization done (n=8): time 1.332e-06/0.3853, allocations: 0 / 0.5516 GB, free: 9.848 MB / 398.1 MB Notification: Performance of matching and sorting (n=8): time 0.0005472/0.3858, allocations: 140.6 kB / 0.5517 GB, free: 9.754 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.529e-05/0.3859, allocations: 82.39 kB / 0.5518 GB, free: 9.656 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001263/0.386, allocations: 126.1 kB / 0.5519 GB, free: 9.539 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.97e-05/0.386, allocations: 25.7 kB / 0.5519 GB, free: 9.508 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.568e-05/0.3861, allocations: 125.2 kB / 0.552 GB, free: 9.387 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.451e-05/0.3862, allocations: 35.64 kB / 0.5521 GB, free: 9.355 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.125e-05/0.3862, allocations: 34.83 kB / 0.5521 GB, free: 9.324 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001493/0.3864, allocations: 325.5 kB / 0.5524 GB, free: 9 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.281e-05/0.3864, allocations: 20.12 kB / 0.5524 GB, free: 8.992 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.627e-05/0.3865, allocations: 86.67 kB / 0.5525 GB, free: 8.898 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001654/0.3867, allocations: 121 kB / 0.5526 GB, free: 8.781 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.3867, allocations: 5.031 kB / 0.5526 GB, free: 8.777 MB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002962/0.387, allocations: 173.4 kB / 0.5528 GB, free: 8.66 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.837e-05/0.387, allocations: 5.844 kB / 0.5528 GB, free: 8.66 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.055e-05/0.387, allocations: 5.375 kB / 0.5528 GB, free: 8.656 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002057/0.3872, allocations: 35.7 kB / 0.5529 GB, free: 8.633 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.658e-05/0.3873, allocations: 25.08 kB / 0.5529 GB, free: 8.625 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002262/0.3896, allocations: 2.54 MB / 0.5554 GB, free: 6.008 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.104e-05/0.3896, allocations: 12.61 kB / 0.5554 GB, free: 6 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.318e-05/0.3897, allocations: 13.91 kB / 0.5554 GB, free: 5.992 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.0001231/0.3898, allocations: 123.7 kB / 0.5555 GB, free: 5.867 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.159e-05/0.3898, allocations: 12.48 kB / 0.5555 GB, free: 5.859 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.313e-05/0.3899, allocations: 13.11 kB / 0.5555 GB, free: 5.84 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-06/0.3899, allocations: 2.219 kB / 0.5555 GB, free: 5.84 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.89e-06/0.3899, allocations: 1.125 kB / 0.5555 GB, free: 5.84 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.3899, allocations: 0 / 0.5555 GB, free: 5.84 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002804/0.3902, allocations: 175.8 kB / 0.5557 GB, free: 5.648 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.3902, allocations: 1.188 kB / 0.5557 GB, free: 5.648 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.591e-05/0.3902, allocations: 14.66 kB / 0.5557 GB, free: 5.645 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001251/0.3904, allocations: 40.64 kB / 0.5557 GB, free: 5.613 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.021e-05/0.3904, allocations: 1.031 kB / 0.5557 GB, free: 5.613 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002001/0.3924, allocations: 2.529 MB / 0.5582 GB, free: 3.004 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.699e-06/0.3924, allocations: 5.109 kB / 0.5582 GB, free: 3 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000343/0.3927, allocations: 318.2 kB / 0.5585 GB, free: 2.715 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.886e-05/0.3927, allocations: 6.953 kB / 0.5585 GB, free: 2.711 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.448e-05/0.3928, allocations: 5.281 kB / 0.5585 GB, free: 2.707 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.721e-05/0.3928, allocations: 1.156 kB / 0.5585 GB, free: 2.707 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.617e-05/0.3929, allocations: 6.969 kB / 0.5585 GB, free: 2.703 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.099e-06/0.3929, allocations: 2.188 kB / 0.5585 GB, free: 2.703 MB / 398.1 MB Notification: Performance of sorting global known variables: time 8.155e-05/0.393, allocations: 100.8 kB / 0.5586 GB, free: 2.613 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.393, allocations: 0 / 0.5586 GB, free: 2.613 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003822/0.3933, allocations: 41.33 kB / 0.5587 GB, free: 2.602 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.000684/0.394, allocations: 0.8248 MB / 0.5595 GB, free: 1.805 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005216/0.3945, allocations: 300.7 kB / 0.5598 GB, free: 1.539 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.3946, allocations: 0 / 0.5598 GB, free: 1.539 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003034/0.3949, allocations: 258.4 kB / 0.56 GB, free: 1.293 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005291/0.3954, allocations: 39.33 kB / 0.5601 GB, free: 1.27 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002446/0.3978, allocations: 1.98 MB / 0.562 GB, free: 15.41 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003545/0.3982, allocations: 0.7154 MB / 0.5627 GB, free: 14.69 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.858e-05/0.3982, allocations: 4.766 kB / 0.5627 GB, free: 14.68 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.874e-05/0.3983, allocations: 31.67 kB / 0.5627 GB, free: 14.66 MB / 414.1 MB Notification: Performance of SimCode: time 1.062e-06/0.3983, allocations: 0 / 0.5627 GB, free: 14.66 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03444/0.4327, allocations: 3.095 MB / 0.5657 GB, free: 12.27 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.46/10.9, allocations: 4.062 kB / 0.5658 GB, free: 12.26 MB / 414.1 MB " [Timeout remaining time 649] (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.00039984 ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_Directions3.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe 2>&1) [Timeout 52.5] 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) [Timeout 660] "Error: Could not read variable J1.phi in file ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3_res.csv. Warning: Get data of variable J1.phi from file ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3_res.csv failed! Error: Could not read variable J3.phi in file ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3_res.csv. Warning: Get data of variable J3.phi from file ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.166458482999587]