Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.002148/0.002148, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.002367/0.002367, allocations: 213.7 kB / 23.73 MB, free: 4.16 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.506/1.506, allocations: 230.6 MB / 257.5 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2333/0.2333, allocations: 46.95 MB / 360.9 MB, free: 4.012 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+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_1_0_ModelicaTest_Rotational_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.GenerationOfFMUs,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Rotational_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002271/0.002271, allocations: 71.89 kB / 0.4961 GB, free: 7.707 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3785/0.3808, allocations: 66.03 MB / 0.5606 GB, free: 4.211 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.007945/0.3888, allocations: 5.137 MB / 0.5656 GB, free: 15.05 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.00471/0.3935, allocations: 2.255 MB / 0.5678 GB, free: 12.79 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001079/0.3945, allocations: 51.56 kB / 0.5678 GB, free: 12.73 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007723/0.3953, allocations: 234 kB / 0.5681 GB, free: 12.5 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000827/0.3961, allocations: 182.3 kB / 0.5682 GB, free: 12.32 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001509/0.3977, allocations: 474.9 kB / 0.5687 GB, free: 11.86 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001997/0.3997, allocations: 1.11 MB / 0.5698 GB, free: 10.74 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001001/0.4007, allocations: 401.8 kB / 0.5702 GB, free: 10.33 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008284/0.4015, allocations: 386.6 kB / 0.5705 GB, free: 9.953 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007356/0.4022, allocations: 346 kB / 0.5709 GB, free: 9.613 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000248/0.4025, allocations: 96 kB / 0.571 GB, free: 9.52 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004795/0.4029, allocations: 159.9 kB / 0.5711 GB, free: 9.363 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003205/0.4033, allocations: 211.3 kB / 0.5713 GB, free: 9.156 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006061/0.4039, allocations: 378.1 kB / 0.5717 GB, free: 8.785 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001866/0.4057, allocations: 1.29 MB / 0.5729 GB, free: 7.492 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.853e-06/0.4057, allocations: 4 kB / 0.5729 GB, free: 7.488 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.043e-06/0.4057, allocations: 4 kB / 0.5729 GB, free: 7.484 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.465e-05/0.4058, allocations: 0 / 0.5729 GB, free: 7.484 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.002433/0.4082, allocations: 1.089 MB / 0.574 GB, free: 6.363 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.47e-05/0.4083, allocations: 8.031 kB / 0.574 GB, free: 6.355 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000229/0.4085, allocations: 139.9 kB / 0.5741 GB, free: 6.211 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003407/0.4089, allocations: 120.2 kB / 0.5743 GB, free: 6.094 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001122/0.41, allocations: 0.5223 MB / 0.5748 GB, free: 5.543 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.404e-05/0.4101, allocations: 66 kB / 0.5748 GB, free: 5.477 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001499/0.4102, allocations: 95.95 kB / 0.5749 GB, free: 5.383 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00173/0.4119, allocations: 0.8892 MB / 0.5758 GB, free: 4.434 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.235e-05/0.412, allocations: 8 kB / 0.5758 GB, free: 4.426 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.473e-05/0.4121, allocations: 36 kB / 0.5758 GB, free: 4.391 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.565e-05/0.4121, allocations: 24 kB / 0.5759 GB, free: 4.367 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001138/0.4132, allocations: 0.5151 MB / 0.5764 GB, free: 3.848 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004699/0.4179, allocations: 3.325 MB / 0.5796 GB, free: 384 kB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007486/0.4187, allocations: 203.1 kB / 0.5798 GB, free: 168 kB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001808/0.4189, allocations: 92.81 kB / 0.5799 GB, free: 72 kB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001592/0.419, allocations: 19.98 kB / 0.5799 GB, free: 52 kB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.858e-05/0.4191, allocations: 34.56 kB / 0.5799 GB, free: 8 kB / 414.1 MB Notification: Performance of pre-optimization done (n=30): time 2.074e-06/0.4191, allocations: 0 / 0.5799 GB, free: 8 kB / 414.1 MB Notification: Performance of matching and sorting (n=35): time 0.002794/0.4219, allocations: 1.158 MB / 0.5811 GB, free: 14.79 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.682e-05/0.4219, allocations: 59.34 kB / 0.5811 GB, free: 14.72 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005475/0.4225, allocations: 413.7 kB / 0.5815 GB, free: 14.31 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 2.997e-05/0.4225, allocations: 33.7 kB / 0.5816 GB, free: 14.27 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003889/0.4229, allocations: 483.4 kB / 0.582 GB, free: 13.79 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001318/0.423, allocations: 142.8 kB / 0.5822 GB, free: 13.65 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001456/0.4232, allocations: 98.25 kB / 0.5822 GB, free: 13.54 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002615/0.4234, allocations: 362.8 kB / 0.5826 GB, free: 13.18 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002153/0.4236, allocations: 109.3 kB / 0.5827 GB, free: 13.07 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004216/0.4241, allocations: 319 kB / 0.583 GB, free: 12.68 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007179/0.4248, allocations: 463.6 kB / 0.5834 GB, free: 12.14 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.4248, allocations: 0 / 0.5834 GB, free: 12.14 MB / 430.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0009072/0.4257, allocations: 0.5089 MB / 0.5839 GB, free: 11.62 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.315e-05/0.4257, allocations: 8 kB / 0.5839 GB, free: 11.61 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.252e-05/0.4257, allocations: 8.844 kB / 0.584 GB, free: 11.6 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003158/0.426, allocations: 36.84 kB / 0.584 GB, free: 11.56 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004024/0.4264, allocations: 135.7 kB / 0.5841 GB, free: 11.43 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004878/0.4269, allocations: 0.5563 MB / 0.5847 GB, free: 10.85 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002262/0.4272, allocations: 16 kB / 0.5847 GB, free: 10.83 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.66e-05/0.4272, allocations: 24.05 kB / 0.5847 GB, free: 10.81 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.000373/0.4276, allocations: 233.6 kB / 0.5849 GB, free: 10.57 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.162e-05/0.4277, allocations: 55.61 kB / 0.585 GB, free: 10.52 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007812/0.4284, allocations: 339.1 kB / 0.5853 GB, free: 10.18 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.341e-06/0.4284, allocations: 4 kB / 0.5853 GB, free: 10.17 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.431e-06/0.4284, allocations: 0 / 0.5853 GB, free: 10.17 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.4285, allocations: 0 / 0.5853 GB, free: 10.17 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001785/0.4302, allocations: 0.9955 MB / 0.5863 GB, free: 9.109 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.4302, allocations: 0 / 0.5863 GB, free: 9.109 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003639/0.4306, allocations: 80.05 kB / 0.5864 GB, free: 9.031 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001614/0.4308, allocations: 40.78 kB / 0.5864 GB, free: 8.988 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.526e-05/0.4308, allocations: 8 kB / 0.5864 GB, free: 8.98 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004106/0.4312, allocations: 0.5485 MB / 0.5869 GB, free: 8.406 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.4312, allocations: 0 / 0.5869 GB, free: 8.406 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008729/0.4321, allocations: 0.564 MB / 0.5875 GB, free: 7.805 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.693e-05/0.4322, allocations: 39.67 kB / 0.5875 GB, free: 7.766 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.236e-05/0.4322, allocations: 12 kB / 0.5875 GB, free: 7.754 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001591/0.4324, allocations: 16.05 kB / 0.5875 GB, free: 7.738 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.715e-05/0.4324, allocations: 35.83 kB / 0.5876 GB, free: 7.703 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.163e-05/0.4325, allocations: 8 kB / 0.5876 GB, free: 7.695 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003227/0.4328, allocations: 271.1 kB / 0.5878 GB, free: 7.434 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4328, allocations: 0 / 0.5878 GB, free: 7.434 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0005772/0.4334, allocations: 124 kB / 0.588 GB, free: 7.312 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.001382/0.4347, allocations: 1.118 MB / 0.5891 GB, free: 6.148 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0007916/0.4355, allocations: 317.3 kB / 0.5894 GB, free: 5.84 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.4355, allocations: 0 / 0.5894 GB, free: 5.84 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002855/0.4358, allocations: 136.2 kB / 0.5895 GB, free: 5.707 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005706/0.4364, allocations: 81.98 kB / 0.5896 GB, free: 5.633 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007154/0.4436, allocations: 4.859 MB / 0.5943 GB, free: 0.5 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006297/0.4442, allocations: 372.2 kB / 0.5947 GB, free: 112 kB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001996/0.4444, allocations: 56.48 kB / 0.5947 GB, free: 52 kB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004907/0.4449, allocations: 299.4 kB / 0.595 GB, free: 15.75 MB / 446.1 MB Notification: Performance of SimCode: time 1.212e-06/0.4449, allocations: 0 / 0.595 GB, free: 15.75 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04588/0.4908, allocations: 10.01 MB / 0.6048 GB, free: 5.949 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.09/13.58, allocations: 8.047 kB / 0.6048 GB, free: 5.941 MB / 446.1 MB " [Timeout remaining time 646] (rm -f ModelicaTest_4.1.0_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Rotational.GenerationOfFMUs.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Rotational.GenerationOfFMUs.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Rotational.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Rotational.GenerationOfFMUs_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Rotational_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Rotational_GenerationOfFMUs.fmu > ModelicaTest_4.1.0_ModelicaTest.Rotational.GenerationOfFMUs.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_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_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.617463575210422]