Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001294/0.001294, allocations: 111.1 kB / 20.44 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001401/0.001401, allocations: 203.9 kB / 23.73 MB, free: 4.379 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.437/1.437, allocations: 230.6 MB / 257.5 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2384/0.2384, allocations: 46.96 MB / 360.9 MB, free: 4 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions3,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Rotational_ForUsersGuide_Directions3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions3,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Rotational_ForUsersGuide_Directions3",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001951/0.001951, allocations: 71.89 kB / 0.4961 GB, free: 7.699 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3375/0.3395, allocations: 66.03 MB / 0.5606 GB, free: 4.199 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions3): time 0.003705/0.3432, allocations: 1.61 MB / 0.5622 GB, free: 2.578 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002752/0.3435, allocations: 107.6 kB / 0.5623 GB, free: 2.473 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.331e-05/0.3435, allocations: 4 kB / 0.5623 GB, free: 2.469 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 5.138e-05/0.3436, allocations: 15.86 kB / 0.5623 GB, free: 2.453 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001172/0.3437, allocations: 39.62 kB / 0.5623 GB, free: 2.414 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001292/0.3438, allocations: 23.92 kB / 0.5623 GB, free: 2.391 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001544/0.344, allocations: 139.4 kB / 0.5625 GB, free: 2.254 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001161/0.3441, allocations: 21.3 kB / 0.5625 GB, free: 2.23 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.472e-05/0.3442, allocations: 51.86 kB / 0.5625 GB, free: 2.18 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.992e-05/0.3443, allocations: 51.77 kB / 0.5626 GB, free: 2.129 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.047e-05/0.3443, allocations: 8 kB / 0.5626 GB, free: 2.121 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.542e-05/0.3443, allocations: 12 kB / 0.5626 GB, free: 2.109 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.964e-05/0.3443, allocations: 23.92 kB / 0.5626 GB, free: 2.086 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.964e-05/0.3444, allocations: 47.8 kB / 0.5627 GB, free: 2.039 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001736/0.3446, allocations: 125.3 kB / 0.5628 GB, free: 1.918 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.858e-06/0.3446, allocations: 3.938 kB / 0.5628 GB, free: 1.914 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.3446, allocations: 0 / 0.5628 GB, free: 1.914 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.845e-06/0.3446, allocations: 3.984 kB / 0.5628 GB, free: 1.91 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.000491/0.3451, allocations: 338 kB / 0.5631 GB, free: 1.543 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.953e-05/0.3451, allocations: 12.03 kB / 0.5631 GB, free: 1.531 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.041e-05/0.3452, allocations: 46.73 kB / 0.5632 GB, free: 1.477 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.163e-05/0.3452, allocations: 8.891 kB / 0.5632 GB, free: 1.469 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002513/0.3455, allocations: 138.3 kB / 0.5633 GB, free: 1.309 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.454e-05/0.3455, allocations: 12.61 kB / 0.5633 GB, free: 1.297 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.536e-05/0.3455, allocations: 12.38 kB / 0.5633 GB, free: 1.285 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002225/0.3458, allocations: 121.6 kB / 0.5635 GB, free: 1.156 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.036e-05/0.3458, allocations: 7.891 kB / 0.5635 GB, free: 1.148 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.407e-05/0.3458, allocations: 8 kB / 0.5635 GB, free: 1.141 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.093e-05/0.3458, allocations: 11.98 kB / 0.5635 GB, free: 1.129 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001175/0.3459, allocations: 55.91 kB / 0.5635 GB, free: 1.074 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000727/0.3467, allocations: 463.7 kB / 0.564 GB, free: 0.5742 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001573/0.3468, allocations: 85.16 kB / 0.5641 GB, free: 484 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.488e-05/0.3469, allocations: 29.66 kB / 0.5641 GB, free: 448 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.621e-05/0.3469, allocations: 4 kB / 0.5641 GB, free: 444 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.072e-05/0.3469, allocations: 34.5 kB / 0.5641 GB, free: 400 kB / 398.1 MB Notification: Performance of pre-optimization done (n=8): time 1.252e-06/0.3469, allocations: 0 / 0.5641 GB, free: 400 kB / 398.1 MB Notification: Performance of matching and sorting (n=8): time 0.0005486/0.3475, allocations: 159.2 kB / 0.5643 GB, free: 228 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.5e-05/0.3475, allocations: 77.11 kB / 0.5644 GB, free: 132 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001321/0.3477, allocations: 125.9 kB / 0.5645 GB, free: 15.99 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.068e-05/0.3477, allocations: 25.7 kB / 0.5645 GB, free: 15.96 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.1e-05/0.3478, allocations: 119.8 kB / 0.5646 GB, free: 15.84 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.799e-05/0.3478, allocations: 39.72 kB / 0.5646 GB, free: 15.8 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.004e-05/0.3479, allocations: 29.7 kB / 0.5647 GB, free: 15.77 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001464/0.348, allocations: 322.6 kB / 0.565 GB, free: 15.45 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.492e-05/0.3481, allocations: 23.98 kB / 0.565 GB, free: 15.42 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.429e-05/0.3482, allocations: 88.52 kB / 0.5651 GB, free: 15.3 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001578/0.3483, allocations: 116.8 kB / 0.5652 GB, free: 15.16 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/0.3483, allocations: 4 kB / 0.5652 GB, free: 15.16 MB / 414.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002967/0.3486, allocations: 175 kB / 0.5654 GB, free: 14.97 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.152e-05/0.3487, allocations: 11.94 kB / 0.5654 GB, free: 14.96 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/0.3487, allocations: 0 / 0.5654 GB, free: 14.96 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001971/0.3489, allocations: 37.7 kB / 0.5654 GB, free: 14.92 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.765e-05/0.349, allocations: 20 kB / 0.5654 GB, free: 14.9 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002227/0.3512, allocations: 2.535 MB / 0.5679 GB, free: 12.14 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.244e-05/0.3512, allocations: 7.984 kB / 0.5679 GB, free: 12.13 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.237e-06/0.3512, allocations: 8 kB / 0.5679 GB, free: 12.12 MB / 414.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.0001575/0.3514, allocations: 138 kB / 0.5681 GB, free: 11.98 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.096e-05/0.3515, allocations: 11.89 kB / 0.5681 GB, free: 11.96 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.04e-05/0.3515, allocations: 11.98 kB / 0.5681 GB, free: 11.95 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.3515, allocations: 4.094 kB / 0.5681 GB, free: 11.94 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/0.3515, allocations: 0 / 0.5681 GB, free: 11.94 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.3515, allocations: 3.984 kB / 0.5681 GB, free: 11.94 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002693/0.3518, allocations: 164.7 kB / 0.5683 GB, free: 11.73 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-06/0.3518, allocations: 0 / 0.5683 GB, free: 11.73 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.444e-05/0.3519, allocations: 16 kB / 0.5683 GB, free: 11.72 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.98e-05/0.352, allocations: 37.64 kB / 0.5683 GB, free: 11.68 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.162e-05/0.352, allocations: 4 kB / 0.5683 GB, free: 11.67 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002072/0.354, allocations: 2.515 MB / 0.5708 GB, free: 8.93 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.354, allocations: 8.062 kB / 0.5708 GB, free: 8.922 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000342/0.3544, allocations: 308.3 kB / 0.5711 GB, free: 8.598 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.212e-05/0.3544, allocations: 4.203 kB / 0.5711 GB, free: 8.594 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.419e-05/0.3544, allocations: 4 kB / 0.5711 GB, free: 8.59 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.202e-05/0.3545, allocations: 4 kB / 0.5711 GB, free: 8.586 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.235e-05/0.3545, allocations: 8.125 kB / 0.5711 GB, free: 8.578 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.061e-06/0.3545, allocations: 3.984 kB / 0.5711 GB, free: 8.574 MB / 414.1 MB Notification: Performance of sorting global known variables: time 7.585e-05/0.3546, allocations: 99.2 kB / 0.5712 GB, free: 8.477 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3546, allocations: 0 / 0.5712 GB, free: 8.477 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003642/0.355, allocations: 43.83 kB / 0.5712 GB, free: 8.434 MB / 414.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.0007741/0.3557, allocations: 0.8266 MB / 0.572 GB, free: 7.574 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005478/0.3563, allocations: 309.2 kB / 0.5723 GB, free: 7.246 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.3563, allocations: 0 / 0.5723 GB, free: 7.246 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002988/0.3566, allocations: 257.9 kB / 0.5726 GB, free: 6.969 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005671/0.3572, allocations: 23.86 kB / 0.5726 GB, free: 6.949 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002691/0.3599, allocations: 1.988 MB / 0.5745 GB, free: 4.816 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001265/0.36, allocations: 93.61 kB / 0.5746 GB, free: 4.707 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.151e-05/0.36, allocations: 4.984 kB / 0.5746 GB, free: 4.695 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.558e-05/0.3601, allocations: 31.42 kB / 0.5747 GB, free: 4.664 MB / 414.1 MB Notification: Performance of SimCode: time 1.193e-06/0.3601, allocations: 0 / 0.5747 GB, free: 4.664 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04477/0.4048, allocations: 3.668 MB / 0.5782 GB, free: 1.141 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.11/11.51, allocations: 12.05 kB / 0.5783 GB, free: 1.129 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.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_1_0_ModelicaTest_Rotational_ForUsersGuide_Directions3.fmu > ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions3_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/ForUsersGuide/Directions3/Directions3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions3_res.csv. Warning: Get data of variable J1.phi from file ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions3_res.csv failed! Error: Could not read variable J3.phi in file ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions3_res.csv. Warning: Get data of variable J3.phi from file ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions3_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.462020282022422]