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.001343/0.001343, allocations: 106.5 kB / 21.23 MB, free: 0.6562 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.001553/0.001553, allocations: 213.2 kB / 24.54 MB, free: 4.016 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.517/1.517, allocations: 230.3 MB / 258 MB, free: 8.223 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.2309/0.2309, allocations: 46.93 MB / 361.4 MB, free: 4.391 MB / 286.1 MB " [Timeout remaining time 179] 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.002418/0.002418, allocations: 88.12 kB / 0.4972 GB, free: 7.516 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3438/0.3462, allocations: 66.04 MB / 0.5616 GB, free: 4.543 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.008667/0.3549, allocations: 5.827 MB / 0.5673 GB, free: 14.69 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.005716/0.3606, allocations: 2.387 MB / 0.5697 GB, free: 12.3 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001005/0.3616, allocations: 51.56 kB / 0.5697 GB, free: 12.25 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006678/0.3622, allocations: 234 kB / 0.5699 GB, free: 12.02 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006184/0.3629, allocations: 186.2 kB / 0.5701 GB, free: 11.83 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001539/0.3644, allocations: 498.6 kB / 0.5706 GB, free: 11.34 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001415/0.3658, allocations: 1.11 MB / 0.5717 GB, free: 10.23 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007443/0.3666, allocations: 429.8 kB / 0.5721 GB, free: 9.789 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005724/0.3671, allocations: 386.6 kB / 0.5724 GB, free: 9.41 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005479/0.3677, allocations: 398 kB / 0.5728 GB, free: 9.02 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001257/0.3678, allocations: 96 kB / 0.5729 GB, free: 8.926 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003208/0.3681, allocations: 159.9 kB / 0.5731 GB, free: 8.77 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002209/0.3683, allocations: 211.3 kB / 0.5733 GB, free: 8.562 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004749/0.3688, allocations: 469.6 kB / 0.5737 GB, free: 8.102 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001525/0.3703, allocations: 1.294 MB / 0.575 GB, free: 6.809 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.3703, allocations: 0 / 0.575 GB, free: 6.809 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3703, allocations: 0 / 0.575 GB, free: 6.809 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.307e-05/0.3704, allocations: 0 / 0.575 GB, free: 6.809 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.001728/0.3721, allocations: 1.077 MB / 0.576 GB, free: 5.699 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.474e-05/0.3721, allocations: 15.97 kB / 0.5761 GB, free: 5.684 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000273/0.3724, allocations: 116.2 kB / 0.5762 GB, free: 5.57 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001014/0.3734, allocations: 0.5303 MB / 0.5767 GB, free: 5.012 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.706e-05/0.3735, allocations: 66 kB / 0.5767 GB, free: 4.945 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001461/0.3736, allocations: 99.94 kB / 0.5768 GB, free: 4.848 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001598/0.3752, allocations: 0.8814 MB / 0.5777 GB, free: 3.906 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.603e-05/0.3753, allocations: 7.984 kB / 0.5777 GB, free: 3.898 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.512e-05/0.3753, allocations: 44 kB / 0.5778 GB, free: 3.855 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.463e-05/0.3754, allocations: 20 kB / 0.5778 GB, free: 3.836 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001086/0.3765, allocations: 0.5229 MB / 0.5783 GB, free: 3.309 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004135/0.3806, allocations: 3.509 MB / 0.5817 GB, free: 15.65 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005926/0.3812, allocations: 214.6 kB / 0.5819 GB, free: 15.43 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001852/0.3814, allocations: 96.81 kB / 0.582 GB, free: 15.33 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001104/0.3815, allocations: 19.92 kB / 0.582 GB, free: 15.31 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.198e-05/0.3815, allocations: 34.56 kB / 0.5821 GB, free: 15.27 MB / 430.1 MB Notification: Performance of pre-optimization done (n=30): time 1.763e-06/0.3815, allocations: 4 kB / 0.5821 GB, free: 15.27 MB / 430.1 MB Notification: Performance of matching and sorting (n=35): time 0.00256/0.3841, allocations: 1.151 MB / 0.5832 GB, free: 14.05 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.986e-05/0.3841, allocations: 59.34 kB / 0.5832 GB, free: 13.98 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004955/0.3846, allocations: 405.8 kB / 0.5836 GB, free: 13.58 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 2.916e-05/0.3846, allocations: 33.7 kB / 0.5837 GB, free: 13.54 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003822/0.385, allocations: 479.5 kB / 0.5841 GB, free: 13.06 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001223/0.3852, allocations: 142.8 kB / 0.5843 GB, free: 12.92 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001374/0.3853, allocations: 98.3 kB / 0.5843 GB, free: 12.82 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001969/0.3855, allocations: 362.8 kB / 0.5847 GB, free: 12.45 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002256/0.3857, allocations: 113.2 kB / 0.5848 GB, free: 12.34 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003997/0.3861, allocations: 311 kB / 0.5851 GB, free: 11.95 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007051/0.3868, allocations: 459.6 kB / 0.5855 GB, free: 11.42 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.3868, allocations: 0 / 0.5855 GB, free: 11.42 MB / 430.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0008608/0.3877, allocations: 0.5172 MB / 0.586 GB, free: 10.89 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.196e-05/0.3877, allocations: 8 kB / 0.586 GB, free: 10.88 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.048e-05/0.3877, allocations: 4 kB / 0.5861 GB, free: 10.88 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002113/0.3879, allocations: 40.83 kB / 0.5861 GB, free: 10.84 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004154/0.3883, allocations: 131.7 kB / 0.5862 GB, free: 10.71 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004722/0.3888, allocations: 0.5643 MB / 0.5868 GB, free: 10.12 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002038/0.389, allocations: 23.98 kB / 0.5868 GB, free: 10.09 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.2e-05/0.3891, allocations: 24 kB / 0.5868 GB, free: 10.07 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.0003138/0.3894, allocations: 229 kB / 0.587 GB, free: 9.84 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.999e-05/0.3895, allocations: 55.61 kB / 0.5871 GB, free: 9.785 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006515/0.3901, allocations: 331.2 kB / 0.5874 GB, free: 9.453 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.38e-06/0.3901, allocations: 4 kB / 0.5874 GB, free: 9.449 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.3901, allocations: 0 / 0.5874 GB, free: 9.449 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.3901, allocations: 3.984 kB / 0.5874 GB, free: 9.445 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001535/0.3917, allocations: 1.027 MB / 0.5884 GB, free: 8.352 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.3917, allocations: 0 / 0.5884 GB, free: 8.352 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003765/0.392, allocations: 79.91 kB / 0.5885 GB, free: 8.273 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001349/0.3922, allocations: 32.78 kB / 0.5885 GB, free: 8.238 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.898e-05/0.3922, allocations: 11.98 kB / 0.5885 GB, free: 8.227 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003793/0.3926, allocations: 0.5446 MB / 0.5891 GB, free: 7.656 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.682e-06/0.3926, allocations: 16.19 kB / 0.5891 GB, free: 7.641 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008221/0.3934, allocations: 0.5601 MB / 0.5896 GB, free: 7.043 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.86e-05/0.3935, allocations: 43.75 kB / 0.5897 GB, free: 7 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.01e-05/0.3935, allocations: 11.98 kB / 0.5897 GB, free: 6.988 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001595/0.3937, allocations: 8 kB / 0.5897 GB, free: 6.98 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.932e-05/0.3937, allocations: 27.89 kB / 0.5897 GB, free: 6.953 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.348e-05/0.3938, allocations: 12 kB / 0.5897 GB, free: 6.941 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003328/0.3941, allocations: 275.1 kB / 0.59 GB, free: 6.676 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3941, allocations: 0 / 0.59 GB, free: 6.676 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0005344/0.3946, allocations: 127.9 kB / 0.5901 GB, free: 6.551 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.0001796/0.3948, allocations: 115.2 kB / 0.5902 GB, free: 6.426 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0006778/0.3955, allocations: 321.2 kB / 0.5905 GB, free: 6.113 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.3955, allocations: 0 / 0.5905 GB, free: 6.113 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002826/0.3958, allocations: 131.8 kB / 0.5906 GB, free: 5.984 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005604/0.3963, allocations: 76.41 kB / 0.5907 GB, free: 5.914 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002925/0.3993, allocations: 1.655 MB / 0.5923 GB, free: 4.215 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006881/0.3999, allocations: 0.9522 MB / 0.5933 GB, free: 3.238 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002187/0.4002, allocations: 68.47 kB / 0.5933 GB, free: 3.172 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.733e-05/0.4003, allocations: 43.42 kB / 0.5934 GB, free: 3.129 MB / 430.1 MB Notification: Performance of SimCode: time 5.82e-07/0.4003, allocations: 0 / 0.5934 GB, free: 3.129 MB / 430.1 MB Notification: Performance of Templates: time 0.01148/0.4117, allocations: 4.609 MB / 0.5979 GB, free: 14.54 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins/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.414822022430599]