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.001653/0.001653, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.002045/0.002045, allocations: 214.3 kB / 23.73 MB, free: 4.16 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.5/1.5, allocations: 230.6 MB / 257.5 MB, free: 7.824 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.25/0.25, allocations: 44.94 MB / 358.8 MB, free: 6.094 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.002215/0.002215, allocations: 67.89 kB / 0.493 GB, free: 10.59 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3189/0.3211, allocations: 65.47 MB / 0.557 GB, free: 7.348 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions3): time 0.003236/0.3243, allocations: 1.614 MB / 0.5585 GB, free: 5.953 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004004/0.3247, allocations: 107.6 kB / 0.5586 GB, free: 5.848 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001117/0.3248, allocations: 3.938 kB / 0.5586 GB, free: 5.844 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 6.911e-05/0.3249, allocations: 15.86 kB / 0.5586 GB, free: 5.828 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001787/0.3251, allocations: 35.7 kB / 0.5587 GB, free: 5.793 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000146/0.3252, allocations: 23.97 kB / 0.5587 GB, free: 5.77 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002282/0.3254, allocations: 131.4 kB / 0.5588 GB, free: 5.641 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001428/0.3256, allocations: 25.28 kB / 0.5589 GB, free: 5.613 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001255/0.3257, allocations: 55.8 kB / 0.5589 GB, free: 5.559 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.483e-05/0.3258, allocations: 47.77 kB / 0.559 GB, free: 5.512 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.354e-05/0.3258, allocations: 8 kB / 0.559 GB, free: 5.504 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.723e-05/0.3259, allocations: 8 kB / 0.559 GB, free: 5.496 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.313e-05/0.3259, allocations: 19.94 kB / 0.559 GB, free: 5.477 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 9.878e-05/0.326, allocations: 51.8 kB / 0.559 GB, free: 5.426 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002233/0.3262, allocations: 121.3 kB / 0.5592 GB, free: 5.309 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.035e-05/0.3262, allocations: 8 kB / 0.5592 GB, free: 5.301 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.3262, allocations: 0 / 0.5592 GB, free: 5.301 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.956e-06/0.3262, allocations: 0 / 0.5592 GB, free: 5.301 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.0006251/0.3269, allocations: 336 kB / 0.5595 GB, free: 4.938 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.778e-05/0.3269, allocations: 8.031 kB / 0.5595 GB, free: 4.93 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.73e-05/0.327, allocations: 46.73 kB / 0.5595 GB, free: 4.875 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.264e-05/0.327, allocations: 12.89 kB / 0.5595 GB, free: 4.863 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002039/0.3272, allocations: 138.3 kB / 0.5597 GB, free: 4.703 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.866e-05/0.3272, allocations: 8.594 kB / 0.5597 GB, free: 4.695 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.939e-05/0.3273, allocations: 16.38 kB / 0.5597 GB, free: 4.68 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002654/0.3275, allocations: 133.4 kB / 0.5598 GB, free: 4.539 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.105e-05/0.3276, allocations: 7.891 kB / 0.5598 GB, free: 4.531 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.786e-05/0.3276, allocations: 8 kB / 0.5598 GB, free: 4.523 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.21e-06/0.3276, allocations: 4 kB / 0.5598 GB, free: 4.52 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001526/0.3277, allocations: 63.95 kB / 0.5599 GB, free: 4.457 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008029/0.3285, allocations: 463.6 kB / 0.5604 GB, free: 3.957 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000154/0.3287, allocations: 85.08 kB / 0.5604 GB, free: 3.855 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.127e-05/0.3287, allocations: 33.83 kB / 0.5605 GB, free: 3.816 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.345e-05/0.3288, allocations: 0 / 0.5605 GB, free: 3.816 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.151e-05/0.3288, allocations: 34.56 kB / 0.5605 GB, free: 3.773 MB / 398.1 MB Notification: Performance of pre-optimization done (n=8): time 1.172e-06/0.3288, allocations: 0 / 0.5605 GB, free: 3.773 MB / 398.1 MB Notification: Performance of matching and sorting (n=8): time 0.0005357/0.3293, allocations: 143.2 kB / 0.5606 GB, free: 3.621 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.387e-05/0.3294, allocations: 81.11 kB / 0.5607 GB, free: 3.523 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001221/0.3295, allocations: 129.7 kB / 0.5608 GB, free: 3.387 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.899e-05/0.3295, allocations: 37.58 kB / 0.5609 GB, free: 3.344 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.881e-05/0.3296, allocations: 115.8 kB / 0.561 GB, free: 3.227 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.454e-05/0.3297, allocations: 35.73 kB / 0.561 GB, free: 3.191 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.146e-05/0.3297, allocations: 29.72 kB / 0.561 GB, free: 3.156 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001701/0.3299, allocations: 322.8 kB / 0.5614 GB, free: 2.832 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.699e-05/0.3299, allocations: 19.98 kB / 0.5614 GB, free: 2.812 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.434e-05/0.33, allocations: 91.25 kB / 0.5615 GB, free: 2.695 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001589/0.3302, allocations: 120.8 kB / 0.5616 GB, free: 2.547 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.3302, allocations: 0 / 0.5616 GB, free: 2.547 MB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000305/0.3305, allocations: 175.1 kB / 0.5617 GB, free: 2.363 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.3305, allocations: 4 kB / 0.5617 GB, free: 2.359 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.2e-05/0.3305, allocations: 11.92 kB / 0.5618 GB, free: 2.348 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001897/0.3307, allocations: 29.72 kB / 0.5618 GB, free: 2.312 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.169e-05/0.3308, allocations: 27.92 kB / 0.5618 GB, free: 2.285 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002355/0.3332, allocations: 2.531 MB / 0.5643 GB, free: 15.53 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.469e-05/0.3332, allocations: 11.98 kB / 0.5643 GB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.076e-05/0.3332, allocations: 8 kB / 0.5643 GB, free: 15.51 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.0001176/0.3334, allocations: 130 kB / 0.5644 GB, free: 15.37 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.658e-05/0.3334, allocations: 11.89 kB / 0.5644 GB, free: 15.36 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.197e-05/0.3334, allocations: 12 kB / 0.5644 GB, free: 15.34 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.068e-06/0.3334, allocations: 4 kB / 0.5645 GB, free: 15.34 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.556e-06/0.3335, allocations: 7.984 kB / 0.5645 GB, free: 15.33 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.3335, allocations: 8.016 kB / 0.5645 GB, free: 15.32 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002526/0.3337, allocations: 160.7 kB / 0.5646 GB, free: 15.12 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.3337, allocations: 4 kB / 0.5646 GB, free: 15.12 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.285e-05/0.3338, allocations: 11.98 kB / 0.5646 GB, free: 15.11 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001124/0.3339, allocations: 45.64 kB / 0.5647 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.24e-05/0.3339, allocations: 4 kB / 0.5647 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002/0.3359, allocations: 2.504 MB / 0.5671 GB, free: 12.32 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.3359, allocations: 4.094 kB / 0.5671 GB, free: 12.32 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003236/0.3362, allocations: 308.3 kB / 0.5674 GB, free: 11.99 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.523e-05/0.3363, allocations: 8.281 kB / 0.5674 GB, free: 11.98 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.189e-05/0.3363, allocations: 0 / 0.5674 GB, free: 11.98 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.873e-05/0.3364, allocations: 4 kB / 0.5674 GB, free: 11.98 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.315e-05/0.3364, allocations: 11.98 kB / 0.5674 GB, free: 11.97 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.299e-05/0.3364, allocations: 4.094 kB / 0.5675 GB, free: 11.96 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.607e-05/0.3365, allocations: 95.27 kB / 0.5675 GB, free: 11.87 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3365, allocations: 0 / 0.5675 GB, free: 11.87 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003458/0.3368, allocations: 39.89 kB / 0.5676 GB, free: 11.83 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.0006922/0.3375, allocations: 0.8452 MB / 0.5684 GB, free: 10.96 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0004851/0.338, allocations: 305.2 kB / 0.5687 GB, free: 10.63 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.338, allocations: 0 / 0.5687 GB, free: 10.63 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002853/0.3383, allocations: 261.8 kB / 0.5689 GB, free: 10.35 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004976/0.3388, allocations: 26.42 kB / 0.569 GB, free: 10.33 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002298/0.3411, allocations: 1.977 MB / 0.5709 GB, free: 8.203 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000103/0.3412, allocations: 89.62 kB / 0.571 GB, free: 8.098 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.04e-05/0.3412, allocations: 12.91 kB / 0.571 GB, free: 8.078 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.118e-05/0.3413, allocations: 27.42 kB / 0.571 GB, free: 8.051 MB / 414.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3413, allocations: 0 / 0.571 GB, free: 8.051 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03568/0.3769, allocations: 3.629 MB / 0.5746 GB, free: 4.566 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.55/11.93, allocations: 6.219 kB / 0.5746 GB, free: 4.562 MB / 414.1 MB " [Timeout remaining time 648] (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: 14.990727284923196]