Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.GenerationOfFMUs.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.001846/0.001846, allocations: 113.1 kB / 21.85 MB, free: 80 kB / 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.002388/0.002388, allocations: 211.2 kB / 25.13 MB, free: 3.605 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.474/1.474, allocations: 230.4 MB / 258.7 MB, free: 8.035 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2341/0.2341, allocations: 46.94 MB / 362 MB, free: 4.219 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-beta.om/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: translateModel(ModelicaTest.Rotational.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|directInertia.inertia.phi|directInertia.inertia.w|inertia2a.phi|inertia2a.w|inertia2b.phi|inertia2b.w|inertia3a.phi|inertia3a.w|inertia3b.phi|inertia3b.w",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.GenerationOfFMUs") translateModel(ModelicaTest.Rotational.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|directInertia.inertia.phi|directInertia.inertia.w|inertia2a.phi|inertia2a.w|inertia2b.phi|inertia2b.w|inertia3a.phi|inertia3a.w|inertia3b.phi|inertia3b.w",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.GenerationOfFMUs") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.003372/0.003372, allocations: 79.86 kB / 0.4978 GB, free: 7.406 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3345/0.3378, allocations: 66.09 MB / 0.5623 GB, free: 4.258 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.007882/0.3457, allocations: 5.773 MB / 0.568 GB, free: 14.46 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.004722/0.3504, allocations: 2.395 MB / 0.5703 GB, free: 12.05 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009809/0.3514, allocations: 55.5 kB / 0.5703 GB, free: 12 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005946/0.352, allocations: 230 kB / 0.5706 GB, free: 11.77 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005566/0.3526, allocations: 182.3 kB / 0.5707 GB, free: 11.59 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00133/0.3539, allocations: 494.6 kB / 0.5712 GB, free: 11.11 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001443/0.3553, allocations: 1.114 MB / 0.5723 GB, free: 9.988 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000733/0.3561, allocations: 429.8 kB / 0.5727 GB, free: 9.551 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006031/0.3567, allocations: 382.7 kB / 0.5731 GB, free: 9.176 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000468/0.3571, allocations: 394 kB / 0.5734 GB, free: 8.789 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001297/0.3573, allocations: 96 kB / 0.5735 GB, free: 8.695 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002857/0.3576, allocations: 163.9 kB / 0.5737 GB, free: 8.535 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002297/0.3578, allocations: 215.3 kB / 0.5739 GB, free: 8.324 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004366/0.3582, allocations: 481.5 kB / 0.5744 GB, free: 7.852 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001435/0.3597, allocations: 1.287 MB / 0.5756 GB, free: 6.566 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.3597, allocations: 0 / 0.5756 GB, free: 6.566 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3597, allocations: 0 / 0.5756 GB, free: 6.566 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.312e-05/0.3597, allocations: 0 / 0.5756 GB, free: 6.566 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 0.001653/0.3613, allocations: 1.089 MB / 0.5767 GB, free: 5.445 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.637e-05/0.3614, allocations: 8.031 kB / 0.5767 GB, free: 5.438 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002641/0.3616, allocations: 120.2 kB / 0.5768 GB, free: 5.32 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009592/0.3626, allocations: 0.5186 MB / 0.5773 GB, free: 4.773 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.752e-05/0.3627, allocations: 73.94 kB / 0.5774 GB, free: 4.699 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001347/0.3628, allocations: 91.95 kB / 0.5775 GB, free: 4.609 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001491/0.3643, allocations: 0.8853 MB / 0.5783 GB, free: 3.664 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.955e-05/0.3643, allocations: 7.938 kB / 0.5783 GB, free: 3.656 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.577e-05/0.3644, allocations: 36 kB / 0.5784 GB, free: 3.621 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.056e-05/0.3644, allocations: 24 kB / 0.5784 GB, free: 3.598 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001051/0.3655, allocations: 0.5268 MB / 0.5789 GB, free: 3.066 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003864/0.3693, allocations: 3.493 MB / 0.5823 GB, free: 15.43 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005748/0.3699, allocations: 213.9 kB / 0.5825 GB, free: 15.21 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000175/0.3701, allocations: 92.83 kB / 0.5826 GB, free: 15.11 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001081/0.3702, allocations: 23.98 kB / 0.5826 GB, free: 15.09 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.182e-05/0.3702, allocations: 34.56 kB / 0.5827 GB, free: 15.05 MB / 430.1 MB Notification: Performance of pre-optimization done (n=30): time 2.104e-06/0.3702, allocations: 0 / 0.5827 GB, free: 15.05 MB / 430.1 MB Notification: Performance of matching and sorting (n=35): time 0.002364/0.3726, allocations: 1.158 MB / 0.5838 GB, free: 13.83 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.425e-05/0.3726, allocations: 63.34 kB / 0.5839 GB, free: 13.75 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004569/0.3731, allocations: 401.8 kB / 0.5842 GB, free: 13.35 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 2.857e-05/0.3731, allocations: 33.7 kB / 0.5843 GB, free: 13.31 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003891/0.3735, allocations: 483.5 kB / 0.5847 GB, free: 12.83 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001169/0.3736, allocations: 146.8 kB / 0.5849 GB, free: 12.69 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000135/0.3738, allocations: 98.3 kB / 0.585 GB, free: 12.58 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000192/0.3739, allocations: 358.8 kB / 0.5853 GB, free: 12.22 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002124/0.3742, allocations: 117.3 kB / 0.5854 GB, free: 12.11 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003752/0.3745, allocations: 311 kB / 0.5857 GB, free: 11.72 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006325/0.3752, allocations: 459.6 kB / 0.5862 GB, free: 11.18 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.468e-06/0.3752, allocations: 4 kB / 0.5862 GB, free: 11.18 MB / 430.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.000829/0.376, allocations: 0.5168 MB / 0.5867 GB, free: 10.65 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.099e-05/0.376, allocations: 8 kB / 0.5867 GB, free: 10.64 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.132e-05/0.376, allocations: 8 kB / 0.5867 GB, free: 10.64 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001848/0.3762, allocations: 32.84 kB / 0.5867 GB, free: 10.6 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003911/0.3766, allocations: 128.4 kB / 0.5868 GB, free: 10.48 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000436/0.377, allocations: 0.564 MB / 0.5874 GB, free: 9.887 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002052/0.3772, allocations: 16 kB / 0.5874 GB, free: 9.871 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.1e-05/0.3773, allocations: 24 kB / 0.5874 GB, free: 9.848 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * 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 (68): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0003192/0.3776, allocations: 237.6 kB / 0.5877 GB, free: 9.605 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.497e-05/0.3777, allocations: 51.61 kB / 0.5877 GB, free: 9.555 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006331/0.3783, allocations: 327.1 kB / 0.588 GB, free: 9.227 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.042e-06/0.3783, allocations: 4 kB / 0.588 GB, free: 9.223 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.3783, allocations: 0 / 0.588 GB, free: 9.223 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.3783, allocations: 0 / 0.588 GB, free: 9.223 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001537/0.3799, allocations: 1.027 MB / 0.589 GB, free: 8.129 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.3799, allocations: 3.938 kB / 0.589 GB, free: 8.125 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003512/0.3802, allocations: 79.89 kB / 0.5891 GB, free: 8.047 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000134/0.3804, allocations: 44.66 kB / 0.5891 GB, free: 8 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.351e-05/0.3804, allocations: 8 kB / 0.5891 GB, free: 7.992 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003833/0.3808, allocations: 0.5447 MB / 0.5897 GB, free: 7.422 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.3808, allocations: 4.031 kB / 0.5897 GB, free: 7.418 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007989/0.3816, allocations: 0.5602 MB / 0.5902 GB, free: 6.82 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.728e-05/0.3816, allocations: 39.67 kB / 0.5903 GB, free: 6.781 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.05e-05/0.3817, allocations: 12 kB / 0.5903 GB, free: 6.77 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000157/0.3818, allocations: 11.98 kB / 0.5903 GB, free: 6.758 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.18e-05/0.3819, allocations: 27.94 kB / 0.5903 GB, free: 6.73 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.384e-05/0.3819, allocations: 11.98 kB / 0.5903 GB, free: 6.719 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0002933/0.3822, allocations: 275.2 kB / 0.5906 GB, free: 6.453 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3822, allocations: 0 / 0.5906 GB, free: 6.453 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0005122/0.3827, allocations: 127.9 kB / 0.5907 GB, free: 6.328 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (directInertia.inertia.w,directInertia.torqueToAngle.phi,inertia2a.w,torqueToAngle2a.y,inertia2b.w,torqueToAngle2b.y,inertia3a.phi,inertia3a.w,inertia3b.phi,inertia3b.w) * 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 (33): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001696/0.3829, allocations: 115.1 kB / 0.5908 GB, free: 6.203 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0006324/0.3835, allocations: 317.4 kB / 0.5911 GB, free: 5.895 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.3835, allocations: 0 / 0.5911 GB, free: 5.895 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002713/0.3838, allocations: 135.8 kB / 0.5913 GB, free: 5.762 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004972/0.3843, allocations: 96.59 kB / 0.5913 GB, free: 5.676 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002592/0.3869, allocations: 1.644 MB / 0.593 GB, free: 3.984 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006197/0.3875, allocations: 0.9561 MB / 0.5939 GB, free: 3.004 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001661/0.3877, allocations: 60.53 kB / 0.5939 GB, free: 2.945 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.521e-05/0.3878, allocations: 39.44 kB / 0.594 GB, free: 2.906 MB / 430.1 MB Notification: Performance of SimCode: time 6.81e-07/0.3878, allocations: 7.938 kB / 0.594 GB, free: 2.898 MB / 430.1 MB Notification: Performance of Templates: time 0.0106/0.3984, allocations: 4.621 MB / 0.5985 GB, free: 14.3 MB / 446.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.GenerationOfFMUs.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.GenerationOfFMUs.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.GenerationOfFMUs.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.GenerationOfFMUs -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.GenerationOfFMUs.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Rotational.GenerationOfFMUs.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: 5.254442984936759]