Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001968/0.001968, allocations: 109.1 kB / 21.22 MB, free: 0.7461 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001616/0.001616, allocations: 212.5 kB / 24.52 MB, free: 4.141 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.469/1.469, allocations: 230.5 MB / 258.2 MB, free: 8.043 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2257/0.2257, allocations: 46.93 MB / 361.6 MB, free: 4.219 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions3,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_Directions3",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions3,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_Directions3",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002312/0.002312, allocations: 79.86 kB / 0.497 GB, free: 7.812 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3258/0.3281, allocations: 66.07 MB / 0.5615 GB, free: 4.328 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions3): time 0.002997/0.3311, allocations: 1.684 MB / 0.5631 GB, free: 2.637 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002792/0.3313, allocations: 111.5 kB / 0.5632 GB, free: 2.527 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.307e-05/0.3314, allocations: 4 kB / 0.5632 GB, free: 2.523 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 5.02e-05/0.3315, allocations: 11.86 kB / 0.5632 GB, free: 2.512 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001219/0.3316, allocations: 39.64 kB / 0.5633 GB, free: 2.473 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001374/0.3317, allocations: 27.95 kB / 0.5633 GB, free: 2.445 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001851/0.3319, allocations: 135.4 kB / 0.5634 GB, free: 2.312 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001326/0.332, allocations: 17.31 kB / 0.5635 GB, free: 2.293 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.758e-05/0.3321, allocations: 55.83 kB / 0.5635 GB, free: 2.238 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.868e-05/0.3322, allocations: 47.78 kB / 0.5636 GB, free: 2.191 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.274e-05/0.3322, allocations: 12 kB / 0.5636 GB, free: 2.18 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.467e-05/0.3323, allocations: 12 kB / 0.5636 GB, free: 2.168 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.691e-05/0.3323, allocations: 19.94 kB / 0.5636 GB, free: 2.148 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 7.414e-05/0.3324, allocations: 59.72 kB / 0.5637 GB, free: 2.09 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001823/0.3325, allocations: 125.3 kB / 0.5638 GB, free: 1.969 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.3325, allocations: 0 / 0.5638 GB, free: 1.969 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.3325, allocations: 0 / 0.5638 GB, free: 1.969 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.921e-06/0.3326, allocations: 0 / 0.5638 GB, free: 1.969 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.0004986/0.333, allocations: 334 kB / 0.5641 GB, free: 1.605 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.453e-05/0.3331, allocations: 12.03 kB / 0.5641 GB, free: 1.594 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.024e-05/0.3331, allocations: 8.422 kB / 0.5641 GB, free: 1.586 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.398e-05/0.3332, allocations: 42.73 kB / 0.5642 GB, free: 1.535 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.699e-05/0.3332, allocations: 12.89 kB / 0.5642 GB, free: 1.523 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001837/0.3334, allocations: 138.3 kB / 0.5643 GB, free: 1.363 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.526e-05/0.3334, allocations: 8.609 kB / 0.5643 GB, free: 1.355 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.134e-05/0.3334, allocations: 12.38 kB / 0.5643 GB, free: 1.344 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002337/0.3337, allocations: 129.3 kB / 0.5644 GB, free: 1.207 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.809e-05/0.3337, allocations: 11.95 kB / 0.5645 GB, free: 1.195 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.42e-05/0.3337, allocations: 4 kB / 0.5645 GB, free: 1.191 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.767e-06/0.3337, allocations: 4 kB / 0.5645 GB, free: 1.188 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001218/0.3338, allocations: 59.89 kB / 0.5645 GB, free: 1.129 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007372/0.3346, allocations: 487.6 kB / 0.565 GB, free: 0.6055 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001392/0.3347, allocations: 93.02 kB / 0.5651 GB, free: 0.4961 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.767e-05/0.3348, allocations: 25.89 kB / 0.5651 GB, free: 476 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.202e-05/0.3348, allocations: 0 / 0.5651 GB, free: 476 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.253e-05/0.3348, allocations: 38.5 kB / 0.5651 GB, free: 428 kB / 398.1 MB Notification: Performance of pre-optimization done (n=8): time 9.51e-07/0.3348, allocations: 7.938 kB / 0.5651 GB, free: 420 kB / 398.1 MB Notification: Performance of matching and sorting (n=8): time 0.0005192/0.3353, allocations: 143.2 kB / 0.5653 GB, free: 264 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.346e-05/0.3354, allocations: 77.11 kB / 0.5654 GB, free: 168 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001109/0.3355, allocations: 129.7 kB / 0.5655 GB, free: 28 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.436e-05/0.3355, allocations: 29.7 kB / 0.5655 GB, free: 15.99 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.756e-05/0.3356, allocations: 115.8 kB / 0.5656 GB, free: 15.88 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.085e-05/0.3356, allocations: 35.73 kB / 0.5656 GB, free: 15.84 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.889e-05/0.3357, allocations: 33.72 kB / 0.5657 GB, free: 15.8 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001418/0.3358, allocations: 318.8 kB / 0.566 GB, free: 15.48 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.309e-05/0.3359, allocations: 23.98 kB / 0.566 GB, free: 15.46 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.384e-05/0.336, allocations: 92.52 kB / 0.5661 GB, free: 15.34 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001584/0.3361, allocations: 124.8 kB / 0.5662 GB, free: 15.18 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.3361, allocations: 0 / 0.5662 GB, free: 15.18 MB / 414.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000277/0.3364, allocations: 167.1 kB / 0.5664 GB, free: 15.01 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.379e-05/0.3364, allocations: 14.2 kB / 0.5664 GB, free: 15 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.764e-06/0.3364, allocations: 8 kB / 0.5664 GB, free: 14.99 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001771/0.3366, allocations: 33.7 kB / 0.5664 GB, free: 14.95 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.978e-05/0.3367, allocations: 23.94 kB / 0.5664 GB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002054/0.3388, allocations: 2.531 MB / 0.5689 GB, free: 12.17 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.64e-05/0.3388, allocations: 11.89 kB / 0.5689 GB, free: 12.16 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.037e-06/0.3388, allocations: 4.094 kB / 0.5689 GB, free: 12.15 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.00011/0.339, allocations: 129.9 kB / 0.5691 GB, free: 12.02 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.867e-05/0.339, allocations: 11.92 kB / 0.5691 GB, free: 12 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.22e-05/0.339, allocations: 12 kB / 0.5691 GB, free: 11.98 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.778e-06/0.339, allocations: 4 kB / 0.5691 GB, free: 11.98 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.339, allocations: 0 / 0.5691 GB, free: 11.98 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.055e-05/0.339, allocations: 3.984 kB / 0.5691 GB, free: 11.98 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002625/0.3393, allocations: 172.6 kB / 0.5693 GB, free: 11.77 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.3393, allocations: 3.938 kB / 0.5693 GB, free: 11.76 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.214e-05/0.3394, allocations: 15.98 kB / 0.5693 GB, free: 11.75 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001056/0.3395, allocations: 45.58 kB / 0.5693 GB, free: 11.7 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.257e-05/0.3395, allocations: 4 kB / 0.5693 GB, free: 11.69 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001909/0.3414, allocations: 2.516 MB / 0.5718 GB, free: 8.949 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.3414, allocations: 4.031 kB / 0.5718 GB, free: 8.945 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003194/0.3418, allocations: 308.3 kB / 0.5721 GB, free: 8.621 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.39e-05/0.3418, allocations: 12.3 kB / 0.5721 GB, free: 8.609 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.217e-05/0.3418, allocations: 0 / 0.5721 GB, free: 8.609 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.495e-05/0.3419, allocations: 4 kB / 0.5721 GB, free: 8.605 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.696e-05/0.3419, allocations: 15.95 kB / 0.5721 GB, free: 8.59 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.192e-06/0.3419, allocations: 4 kB / 0.5721 GB, free: 8.586 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.705e-05/0.342, allocations: 87.28 kB / 0.5722 GB, free: 8.5 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.342, allocations: 3.938 kB / 0.5722 GB, free: 8.496 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003645/0.3423, allocations: 43.83 kB / 0.5722 GB, free: 8.453 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.0006443/0.343, allocations: 0.8305 MB / 0.5731 GB, free: 7.59 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0004774/0.3435, allocations: 309.5 kB / 0.5733 GB, free: 7.262 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.103e-06/0.3435, allocations: 0 / 0.5733 GB, free: 7.262 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002728/0.3437, allocations: 257.3 kB / 0.5736 GB, free: 6.984 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004886/0.3442, allocations: 19.98 kB / 0.5736 GB, free: 6.965 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002338/0.3466, allocations: 1.983 MB / 0.5755 GB, free: 4.832 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003928/0.3469, allocations: 0.7045 MB / 0.5762 GB, free: 4.102 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.412e-05/0.347, allocations: 12.95 kB / 0.5762 GB, free: 4.082 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.329e-05/0.3471, allocations: 27.44 kB / 0.5763 GB, free: 4.055 MB / 414.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3471, allocations: 0 / 0.5763 GB, free: 4.055 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02839/0.3754, allocations: 3.181 MB / 0.5794 GB, free: 0.9922 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.03/12.4, allocations: 7.672 kB / 0.5794 GB, free: 0.9883 MB / 414.1 MB " [Timeout remaining time 647] (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions3_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_Directions3_fmu --startTime=0 --stopTime=2 --stepSize=0.00039984 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_Directions3.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions3_res.mat","/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_trunk_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.521560526045505]