Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.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.001723/0.001723, allocations: 112.2 kB / 21.22 MB, free: 0.7422 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.002144/0.002144, allocations: 209.2 kB / 24.53 MB, free: 4.133 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.639/1.639, allocations: 230.6 MB / 258.3 MB, free: 7.996 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.2354/0.2354, allocations: 44.9 MB / 359.6 MB, free: 6.301 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.GenerationOfFMUs,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_GenerationOfFMUs",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.GenerationOfFMUs,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_GenerationOfFMUs",fmuType="cs",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.002415/0.002415, allocations: 63.91 kB / 0.4938 GB, free: 10.74 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3453/0.3477, allocations: 65.47 MB / 0.5578 GB, free: 7.539 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.008019/0.3557, allocations: 5.824 MB / 0.5635 GB, free: 1.949 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.005211/0.3609, allocations: 2.384 MB / 0.5658 GB, free: 15.56 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001106/0.3621, allocations: 55.5 kB / 0.5658 GB, free: 15.5 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007496/0.3628, allocations: 234 kB / 0.5661 GB, free: 15.27 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007427/0.3635, allocations: 178.3 kB / 0.5662 GB, free: 15.1 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001418/0.365, allocations: 0.4908 MB / 0.5667 GB, free: 14.61 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001745/0.3667, allocations: 1.114 MB / 0.5678 GB, free: 13.48 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009279/0.3676, allocations: 433.8 kB / 0.5682 GB, free: 13.04 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006763/0.3683, allocations: 378.7 kB / 0.5686 GB, free: 12.67 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005291/0.3688, allocations: 398 kB / 0.569 GB, free: 12.28 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000143/0.369, allocations: 96 kB / 0.5691 GB, free: 12.19 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003486/0.3693, allocations: 159.9 kB / 0.5692 GB, free: 12.03 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002564/0.3696, allocations: 215.3 kB / 0.5694 GB, free: 11.82 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005189/0.3701, allocations: 473.6 kB / 0.5699 GB, free: 11.36 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001677/0.3718, allocations: 1.286 MB / 0.5711 GB, free: 10.07 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.369e-06/0.3718, allocations: 0 / 0.5711 GB, free: 10.07 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.3718, allocations: 0 / 0.5711 GB, free: 10.07 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.774e-05/0.3718, allocations: 0 / 0.5711 GB, free: 10.07 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.001808/0.3736, allocations: 1.089 MB / 0.5722 GB, free: 8.945 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.735e-05/0.3737, allocations: 12.03 kB / 0.5722 GB, free: 8.934 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.165e-05/0.3737, allocations: 26.19 kB / 0.5722 GB, free: 8.906 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001769/0.3739, allocations: 139.9 kB / 0.5724 GB, free: 8.762 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002941/0.3742, allocations: 120.2 kB / 0.5725 GB, free: 8.645 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001092/0.3753, allocations: 0.5222 MB / 0.573 GB, free: 8.094 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.414e-05/0.3753, allocations: 66 kB / 0.573 GB, free: 8.031 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001391/0.3755, allocations: 99.89 kB / 0.5731 GB, free: 7.934 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001574/0.3771, allocations: 0.8853 MB / 0.574 GB, free: 6.984 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.86e-05/0.3771, allocations: 7.938 kB / 0.574 GB, free: 6.977 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.929e-05/0.3772, allocations: 40 kB / 0.574 GB, free: 6.938 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.204e-05/0.3772, allocations: 20 kB / 0.5741 GB, free: 6.918 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001054/0.3782, allocations: 0.5268 MB / 0.5746 GB, free: 6.391 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004368/0.3826, allocations: 3.508 MB / 0.578 GB, free: 2.734 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006389/0.3833, allocations: 206.7 kB / 0.5782 GB, free: 2.52 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001934/0.3835, allocations: 96.77 kB / 0.5783 GB, free: 2.422 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001429/0.3836, allocations: 19.97 kB / 0.5783 GB, free: 2.402 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.64e-05/0.3836, allocations: 38.56 kB / 0.5783 GB, free: 2.355 MB / 414.1 MB Notification: Performance of pre-optimization done (n=30): time 2.384e-06/0.3836, allocations: 0 / 0.5783 GB, free: 2.355 MB / 414.1 MB Notification: Performance of matching and sorting (n=35): time 0.00266/0.3863, allocations: 1.162 MB / 0.5795 GB, free: 1.133 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.131e-05/0.3863, allocations: 55.41 kB / 0.5795 GB, free: 1.066 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005033/0.3868, allocations: 393.9 kB / 0.5799 GB, free: 0.6758 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.319e-05/0.3869, allocations: 33.7 kB / 0.5799 GB, free: 0.6367 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003576/0.3872, allocations: 487.4 kB / 0.5804 GB, free: 156 kB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001154/0.3874, allocations: 138.8 kB / 0.5805 GB, free: 16 kB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001791/0.3875, allocations: 98.38 kB / 0.5806 GB, free: 15.91 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002008/0.3877, allocations: 362.8 kB / 0.581 GB, free: 15.54 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000226/0.388, allocations: 117.2 kB / 0.5811 GB, free: 15.43 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000406/0.3884, allocations: 307 kB / 0.5814 GB, free: 15.04 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006764/0.389, allocations: 464.7 kB / 0.5818 GB, free: 14.5 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.389, allocations: 0 / 0.5818 GB, free: 14.5 MB / 430.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0009044/0.3899, allocations: 0.5168 MB / 0.5823 GB, free: 13.98 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.262e-05/0.39, allocations: 8 kB / 0.5823 GB, free: 13.97 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.179e-05/0.39, allocations: 4 kB / 0.5823 GB, free: 13.96 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002416/0.3902, allocations: 44.77 kB / 0.5824 GB, free: 13.92 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003975/0.3906, allocations: 128.4 kB / 0.5825 GB, free: 13.79 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004858/0.3911, allocations: 0.5563 MB / 0.5831 GB, free: 13.21 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002266/0.3913, allocations: 20 kB / 0.5831 GB, free: 13.19 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.524e-05/0.3914, allocations: 24 kB / 0.5831 GB, free: 13.17 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.0003993/0.3918, allocations: 235.2 kB / 0.5833 GB, free: 12.93 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.785e-05/0.3919, allocations: 51.67 kB / 0.5834 GB, free: 12.88 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006867/0.3926, allocations: 331.3 kB / 0.5837 GB, free: 12.55 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.616e-06/0.3926, allocations: 8 kB / 0.5837 GB, free: 12.54 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.3926, allocations: 0 / 0.5837 GB, free: 12.54 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.3926, allocations: 0 / 0.5837 GB, free: 12.54 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001692/0.3943, allocations: 1.03 MB / 0.5847 GB, free: 11.45 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.3943, allocations: 0 / 0.5847 GB, free: 11.45 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004074/0.3947, allocations: 87.83 kB / 0.5848 GB, free: 11.36 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001469/0.3948, allocations: 28.84 kB / 0.5848 GB, free: 11.33 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.851e-05/0.3949, allocations: 12 kB / 0.5848 GB, free: 11.32 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004317/0.3953, allocations: 0.5524 MB / 0.5854 GB, free: 10.74 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.45e-06/0.3953, allocations: 4.031 kB / 0.5854 GB, free: 10.73 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008826/0.3962, allocations: 0.5602 MB / 0.5859 GB, free: 10.14 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.952e-05/0.3963, allocations: 39.67 kB / 0.586 GB, free: 10.1 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.384e-05/0.3963, allocations: 8 kB / 0.586 GB, free: 10.09 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001579/0.3965, allocations: 11.98 kB / 0.586 GB, free: 10.08 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.841e-05/0.3965, allocations: 31.92 kB / 0.586 GB, free: 10.05 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.69e-05/0.3966, allocations: 12 kB / 0.586 GB, free: 10.04 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003652/0.3969, allocations: 279.1 kB / 0.5863 GB, free: 9.762 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3969, allocations: 0 / 0.5863 GB, free: 9.762 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0006127/0.3975, allocations: 120 kB / 0.5864 GB, free: 9.645 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.001338/0.3989, allocations: 1.116 MB / 0.5875 GB, free: 8.48 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0007452/0.3996, allocations: 320.3 kB / 0.5878 GB, free: 8.168 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.3996, allocations: 0 / 0.5878 GB, free: 8.168 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002916/0.3999, allocations: 137.2 kB / 0.5879 GB, free: 8.035 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005817/0.4005, allocations: 78 kB / 0.588 GB, free: 7.961 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007471/0.408, allocations: 4.85 MB / 0.5927 GB, free: 2.824 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007023/0.4087, allocations: 0.9602 MB / 0.5937 GB, free: 1.836 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002272/0.4089, allocations: 60.48 kB / 0.5937 GB, free: 1.777 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000427/0.4093, allocations: 299.3 kB / 0.594 GB, free: 1.484 MB / 430.1 MB Notification: Performance of SimCode: time 1.793e-06/0.4093, allocations: 0 / 0.594 GB, free: 1.484 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04034/0.4497, allocations: 9.903 MB / 0.6037 GB, free: 7.75 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.55/14, allocations: 7.031 kB / 0.6037 GB, free: 7.746 MB / 446.1 MB " [Timeout remaining time 646] (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Rotational_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Rotational_GenerationOfFMUs.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_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: 17.30654511001194]