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.001399/0.001399, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.001609/0.001609, allocations: 210.8 kB / 23.73 MB, free: 4.387 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.543/1.543, allocations: 230.6 MB / 257.5 MB, free: 7.793 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.2353/0.2353, allocations: 44.94 MB / 358.8 MB, free: 6.066 MB / 286.1 MB " [Timeout remaining time 179] 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.GenerationOfFMUs,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_GenerationOfFMUs",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.002066/0.002066, allocations: 75.86 kB / 0.493 GB, free: 10.57 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3602/0.3623, allocations: 65.47 MB / 0.5569 GB, free: 7.34 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.00776/0.3701, allocations: 5.136 MB / 0.562 GB, free: 2.398 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00512/0.3752, allocations: 2.255 MB / 0.5642 GB, free: 140 kB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001352/0.3765, allocations: 55.5 kB / 0.5642 GB, free: 84 kB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009153/0.3774, allocations: 230.1 kB / 0.5644 GB, free: 15.85 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009087/0.3784, allocations: 182.3 kB / 0.5646 GB, free: 15.67 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001479/0.3798, allocations: 474.9 kB / 0.5651 GB, free: 15.21 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001795/0.3816, allocations: 1.11 MB / 0.5661 GB, free: 14.09 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009379/0.3826, allocations: 409.8 kB / 0.5665 GB, free: 13.68 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006747/0.3832, allocations: 374.7 kB / 0.5669 GB, free: 13.31 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006009/0.3838, allocations: 346 kB / 0.5672 GB, free: 12.97 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002077/0.3841, allocations: 100 kB / 0.5673 GB, free: 12.87 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003997/0.3845, allocations: 163.9 kB / 0.5675 GB, free: 12.71 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002406/0.3847, allocations: 207.3 kB / 0.5677 GB, free: 12.51 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000516/0.3852, allocations: 382.1 kB / 0.568 GB, free: 12.13 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001629/0.3868, allocations: 1.29 MB / 0.5693 GB, free: 10.84 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.3868, allocations: 0 / 0.5693 GB, free: 10.84 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.3868, allocations: 0 / 0.5693 GB, free: 10.84 MB / 414.1 MB Notification: Performance of Transformations before backend: time 2.134e-05/0.3869, allocations: 0 / 0.5693 GB, free: 10.84 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.001761/0.3886, allocations: 1.093 MB / 0.5704 GB, free: 9.715 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.96e-05/0.3887, allocations: 11.97 kB / 0.5704 GB, free: 9.703 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000181/0.3889, allocations: 143.9 kB / 0.5705 GB, free: 9.555 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003141/0.3892, allocations: 116.2 kB / 0.5706 GB, free: 9.441 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001081/0.3903, allocations: 0.5185 MB / 0.5711 GB, free: 8.895 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.342e-05/0.3903, allocations: 66 kB / 0.5712 GB, free: 8.828 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001393/0.3905, allocations: 95.89 kB / 0.5713 GB, free: 8.734 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001519/0.392, allocations: 0.8918 MB / 0.5722 GB, free: 7.785 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.129e-05/0.392, allocations: 7.938 kB / 0.5722 GB, free: 7.777 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.001e-05/0.3921, allocations: 39.98 kB / 0.5722 GB, free: 7.738 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.219e-05/0.3921, allocations: 27.98 kB / 0.5722 GB, free: 7.711 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001033/0.3932, allocations: 0.519 MB / 0.5727 GB, free: 7.188 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003969/0.3971, allocations: 3.314 MB / 0.576 GB, free: 3.727 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005723/0.3977, allocations: 211.1 kB / 0.5762 GB, free: 3.508 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001884/0.3979, allocations: 96.75 kB / 0.5763 GB, free: 3.41 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001319/0.398, allocations: 16 kB / 0.5763 GB, free: 3.395 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.706e-05/0.398, allocations: 38.55 kB / 0.5763 GB, free: 3.348 MB / 414.1 MB Notification: Performance of pre-optimization done (n=30): time 1.954e-06/0.398, allocations: 0 / 0.5763 GB, free: 3.348 MB / 414.1 MB Notification: Performance of matching and sorting (n=35): time 0.002453/0.4005, allocations: 1.154 MB / 0.5774 GB, free: 2.133 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.123e-05/0.4005, allocations: 63.28 kB / 0.5775 GB, free: 2.059 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000469/0.401, allocations: 409.8 kB / 0.5779 GB, free: 1.652 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.288e-05/0.401, allocations: 33.7 kB / 0.5779 GB, free: 1.613 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003716/0.4014, allocations: 483.4 kB / 0.5784 GB, free: 1.133 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001147/0.4015, allocations: 138.8 kB / 0.5785 GB, free: 0.9961 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001497/0.4017, allocations: 106.2 kB / 0.5786 GB, free: 0.8828 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001933/0.4019, allocations: 358.8 kB / 0.579 GB, free: 0.5234 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002404/0.4021, allocations: 113.2 kB / 0.5791 GB, free: 424 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003944/0.4025, allocations: 315 kB / 0.5794 GB, free: 20 kB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000685/0.4032, allocations: 460.7 kB / 0.5798 GB, free: 15.48 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.736e-06/0.4032, allocations: 0 / 0.5798 GB, free: 15.48 MB / 430.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0008719/0.4041, allocations: 0.5128 MB / 0.5803 GB, free: 14.96 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.305e-05/0.4041, allocations: 8 kB / 0.5803 GB, free: 14.95 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.13e-05/0.4041, allocations: 4 kB / 0.5803 GB, free: 14.95 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002148/0.4043, allocations: 45.56 kB / 0.5804 GB, free: 14.9 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004118/0.4047, allocations: 135.8 kB / 0.5805 GB, free: 14.77 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004818/0.4052, allocations: 0.5524 MB / 0.581 GB, free: 14.19 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002147/0.4054, allocations: 20 kB / 0.5811 GB, free: 14.17 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.24e-05/0.4055, allocations: 27.98 kB / 0.5811 GB, free: 14.14 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.0003666/0.4058, allocations: 236.6 kB / 0.5813 GB, free: 13.91 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.739e-05/0.4059, allocations: 55.59 kB / 0.5814 GB, free: 13.85 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006466/0.4066, allocations: 323.1 kB / 0.5817 GB, free: 13.53 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.067e-06/0.4066, allocations: 4 kB / 0.5817 GB, free: 13.52 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.09e-06/0.4066, allocations: 0 / 0.5817 GB, free: 13.52 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.863e-06/0.4066, allocations: 7.984 kB / 0.5817 GB, free: 13.52 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001637/0.4082, allocations: 0.9916 MB / 0.5827 GB, free: 12.46 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.4082, allocations: 0 / 0.5827 GB, free: 12.46 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003589/0.4086, allocations: 79.91 kB / 0.5827 GB, free: 12.38 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001384/0.4087, allocations: 36.94 kB / 0.5828 GB, free: 12.34 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.021e-05/0.4088, allocations: 15.92 kB / 0.5828 GB, free: 12.32 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004104/0.4092, allocations: 0.5525 MB / 0.5833 GB, free: 11.75 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.729e-06/0.4092, allocations: 3.984 kB / 0.5833 GB, free: 11.74 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008532/0.41, allocations: 0.5562 MB / 0.5839 GB, free: 11.15 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.33e-05/0.4101, allocations: 47.66 kB / 0.5839 GB, free: 11.1 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.77e-05/0.4102, allocations: 8 kB / 0.5839 GB, free: 11.09 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001504/0.4103, allocations: 11.94 kB / 0.5839 GB, free: 11.08 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.753e-05/0.4104, allocations: 35.98 kB / 0.584 GB, free: 11.05 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.18e-05/0.4104, allocations: 12 kB / 0.584 GB, free: 11.04 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003072/0.4107, allocations: 271.1 kB / 0.5842 GB, free: 10.77 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4107, allocations: 0 / 0.5842 GB, free: 10.77 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0005545/0.4113, allocations: 128 kB / 0.5844 GB, free: 10.65 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.00125/0.4125, allocations: 1.105 MB / 0.5854 GB, free: 9.496 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0006788/0.4132, allocations: 321.4 kB / 0.5857 GB, free: 9.184 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.4132, allocations: 0 / 0.5857 GB, free: 9.184 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002735/0.4135, allocations: 136.1 kB / 0.5859 GB, free: 9.051 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005557/0.414, allocations: 85.2 kB / 0.586 GB, free: 8.973 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006726/0.4207, allocations: 4.842 MB / 0.5907 GB, free: 3.848 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004214/0.4212, allocations: 364.2 kB / 0.591 GB, free: 3.465 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001913/0.4214, allocations: 68.45 kB / 0.5911 GB, free: 3.395 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003917/0.4217, allocations: 299.3 kB / 0.5914 GB, free: 3.102 MB / 430.1 MB Notification: Performance of SimCode: time 1.092e-06/0.4217, allocations: 0 / 0.5914 GB, free: 3.102 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0464/0.4681, allocations: 10.03 MB / 0.6012 GB, free: 9.281 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.92/13.39, allocations: 6.469 kB / 0.6012 GB, free: 9.277 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: 16.538306284230202]