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.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.001748/0.001748, allocations: 109.2 kB / 20.43 MB, free: 1.473 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.002269/0.002269, allocations: 213.4 kB / 23.74 MB, free: 4.688 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.515/1.515, allocations: 230.6 MB / 257.5 MB, free: 8.031 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.2783/0.2783, allocations: 44.91 MB / 358.8 MB, free: 6.32 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.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_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: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002467/0.002467, allocations: 67.89 kB / 0.4931 GB, free: 10.75 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3301/0.3326, allocations: 65.47 MB / 0.557 GB, free: 7.555 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions3): time 0.002861/0.3355, allocations: 1.688 MB / 0.5587 GB, free: 6.117 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002717/0.3357, allocations: 99.67 kB / 0.5588 GB, free: 6.02 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.012e-05/0.3358, allocations: 7.938 kB / 0.5588 GB, free: 6.012 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 4.986e-05/0.3359, allocations: 11.86 kB / 0.5588 GB, free: 6 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001208/0.336, allocations: 47.62 kB / 0.5588 GB, free: 5.953 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001184/0.3361, allocations: 23.91 kB / 0.5588 GB, free: 5.93 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001655/0.3363, allocations: 127.5 kB / 0.559 GB, free: 5.805 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001355/0.3364, allocations: 29.3 kB / 0.559 GB, free: 5.773 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.589e-05/0.3365, allocations: 51.8 kB / 0.559 GB, free: 5.723 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.416e-05/0.3366, allocations: 51.77 kB / 0.5591 GB, free: 5.672 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.362e-05/0.3366, allocations: 12 kB / 0.5591 GB, free: 5.66 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.296e-05/0.3366, allocations: 8 kB / 0.5591 GB, free: 5.652 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.106e-05/0.3367, allocations: 23.92 kB / 0.5591 GB, free: 5.629 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 7.096e-05/0.3367, allocations: 55.73 kB / 0.5592 GB, free: 5.574 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001911/0.3369, allocations: 129.3 kB / 0.5593 GB, free: 5.449 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/0.3369, allocations: 0 / 0.5593 GB, free: 5.449 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.3369, allocations: 0 / 0.5593 GB, free: 5.449 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.769e-06/0.3369, allocations: 0 / 0.5593 GB, free: 5.449 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.000489/0.3374, allocations: 338 kB / 0.5596 GB, free: 5.082 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.35e-05/0.3375, allocations: 12.03 kB / 0.5596 GB, free: 5.07 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.987e-05/0.3375, allocations: 46.73 kB / 0.5597 GB, free: 5.016 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.128e-05/0.3375, allocations: 8.891 kB / 0.5597 GB, free: 5.008 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001678/0.3377, allocations: 134.4 kB / 0.5598 GB, free: 4.852 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.386e-05/0.3377, allocations: 12.55 kB / 0.5598 GB, free: 4.84 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.259e-05/0.3378, allocations: 12.38 kB / 0.5598 GB, free: 4.828 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002181/0.338, allocations: 125.5 kB / 0.56 GB, free: 4.695 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.768e-05/0.338, allocations: 11.89 kB / 0.56 GB, free: 4.684 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.446e-05/0.338, allocations: 8 kB / 0.56 GB, free: 4.676 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.488e-06/0.338, allocations: 0 / 0.56 GB, free: 4.676 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001129/0.3381, allocations: 59.91 kB / 0.56 GB, free: 4.617 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007506/0.3389, allocations: 487.6 kB / 0.5605 GB, free: 4.094 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000136/0.339, allocations: 85.17 kB / 0.5606 GB, free: 3.992 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.353e-05/0.3391, allocations: 29.73 kB / 0.5606 GB, free: 3.957 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.401e-05/0.3391, allocations: 4 kB / 0.5606 GB, free: 3.953 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.74e-05/0.3391, allocations: 30.56 kB / 0.5606 GB, free: 3.914 MB / 398.1 MB Notification: Performance of pre-optimization done (n=8): time 1.172e-06/0.3391, allocations: 7.938 kB / 0.5607 GB, free: 3.906 MB / 398.1 MB Notification: Performance of matching and sorting (n=8): time 0.0005363/0.3396, allocations: 151.5 kB / 0.5608 GB, free: 3.746 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.136e-05/0.3397, allocations: 81.11 kB / 0.5609 GB, free: 3.648 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001086/0.3398, allocations: 121.8 kB / 0.561 GB, free: 3.52 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.898e-05/0.3398, allocations: 33.64 kB / 0.561 GB, free: 3.48 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.18e-05/0.3399, allocations: 119.8 kB / 0.5611 GB, free: 3.359 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.858e-05/0.3399, allocations: 35.73 kB / 0.5612 GB, free: 3.324 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.656e-05/0.34, allocations: 25.72 kB / 0.5612 GB, free: 3.293 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001346/0.3401, allocations: 326.8 kB / 0.5615 GB, free: 2.965 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.732e-05/0.3402, allocations: 23.98 kB / 0.5615 GB, free: 2.941 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.855e-05/0.3403, allocations: 88.58 kB / 0.5616 GB, free: 2.824 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001469/0.3404, allocations: 116.5 kB / 0.5617 GB, free: 2.68 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.3404, allocations: 3.938 kB / 0.5617 GB, free: 2.676 MB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002736/0.3407, allocations: 159.1 kB / 0.5619 GB, free: 2.508 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.144e-05/0.3407, allocations: 8.25 kB / 0.5619 GB, free: 2.5 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.01e-05/0.3407, allocations: 11.94 kB / 0.5619 GB, free: 2.488 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001788/0.3409, allocations: 41.64 kB / 0.5619 GB, free: 2.441 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.474e-05/0.341, allocations: 19.98 kB / 0.562 GB, free: 2.422 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002122/0.3431, allocations: 2.539 MB / 0.5644 GB, free: 15.66 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.349e-05/0.3432, allocations: 15.92 kB / 0.5645 GB, free: 15.64 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.069e-05/0.3432, allocations: 8 kB / 0.5645 GB, free: 15.63 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.0001295/0.3433, allocations: 137.8 kB / 0.5646 GB, free: 15.49 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.089e-05/0.3434, allocations: 7.938 kB / 0.5646 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.815e-05/0.3434, allocations: 8 kB / 0.5646 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/0.3434, allocations: 0 / 0.5646 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.64e-06/0.3434, allocations: 4 kB / 0.5646 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.3434, allocations: 0 / 0.5646 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002742/0.3437, allocations: 180.6 kB / 0.5648 GB, free: 15.24 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.3437, allocations: 0 / 0.5648 GB, free: 15.24 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.5e-05/0.3438, allocations: 12 kB / 0.5648 GB, free: 15.23 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001095/0.3439, allocations: 37.64 kB / 0.5648 GB, free: 15.19 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.135e-05/0.3439, allocations: 4 kB / 0.5648 GB, free: 15.18 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001984/0.3459, allocations: 2.527 MB / 0.5673 GB, free: 12.43 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.3459, allocations: 3.938 kB / 0.5673 GB, free: 12.43 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003549/0.3462, allocations: 308.4 kB / 0.5676 GB, free: 12.1 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.469e-05/0.3462, allocations: 8.297 kB / 0.5676 GB, free: 12.09 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.649e-05/0.3463, allocations: 4 kB / 0.5676 GB, free: 12.09 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.255e-05/0.3464, allocations: 0 / 0.5676 GB, free: 12.09 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.552e-05/0.3464, allocations: 12.03 kB / 0.5676 GB, free: 12.08 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.749e-06/0.3464, allocations: 0 / 0.5676 GB, free: 12.08 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.315e-05/0.3465, allocations: 95.27 kB / 0.5677 GB, free: 11.98 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3465, allocations: 0 / 0.5677 GB, free: 11.98 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003703/0.3468, allocations: 39.89 kB / 0.5678 GB, free: 11.95 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.0006884/0.3475, allocations: 0.8422 MB / 0.5686 GB, free: 11.07 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000492/0.348, allocations: 301.5 kB / 0.5689 GB, free: 10.75 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.039e-06/0.348, allocations: 4 kB / 0.5689 GB, free: 10.75 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002866/0.3483, allocations: 253.3 kB / 0.5691 GB, free: 10.47 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000514/0.3488, allocations: 27.91 kB / 0.5691 GB, free: 10.45 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002413/0.3512, allocations: 1.986 MB / 0.5711 GB, free: 8.316 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003772/0.3516, allocations: 0.7123 MB / 0.5718 GB, free: 7.578 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.473e-05/0.3517, allocations: 8.969 kB / 0.5718 GB, free: 7.562 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.025e-05/0.3517, allocations: 27.42 kB / 0.5718 GB, free: 7.535 MB / 414.1 MB Notification: Performance of SimCode: time 6.71e-07/0.3517, allocations: 0 / 0.5718 GB, free: 7.535 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03637/0.3881, allocations: 3.137 MB / 0.5749 GB, free: 4.535 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.06/12.45, allocations: 4.062 kB / 0.5749 GB, free: 4.531 MB / 414.1 MB " [Timeout remaining time 647] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions3_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_Directions3_fmu --startTime=0 --stopTime=2 --stepSize=0.00039984 --timeout=50 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.49778512492776]