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.001302/0.001302, allocations: 115.9 kB / 20.44 MB, free: 1.465 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.001402/0.001402, allocations: 213.5 kB / 23.74 MB, free: 4.691 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.477/1.477, allocations: 230.6 MB / 257.5 MB, free: 8.02 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.2368/0.2368, allocations: 46.94 MB / 360.9 MB, free: 4.258 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.002027/0.002027, allocations: 63.89 kB / 0.4961 GB, free: 7.926 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3203/0.3223, allocations: 66.05 MB / 0.5606 GB, free: 4.453 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.GenerationOfFMUs): time 0.008032/0.3303, allocations: 5.824 MB / 0.5663 GB, free: 14.59 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.004746/0.3351, allocations: 2.38 MB / 0.5687 GB, free: 12.21 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000929/0.336, allocations: 51.56 kB / 0.5687 GB, free: 12.16 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006683/0.3367, allocations: 234 kB / 0.5689 GB, free: 11.93 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006727/0.3373, allocations: 186.2 kB / 0.5691 GB, free: 11.75 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001395/0.3387, allocations: 498.6 kB / 0.5696 GB, free: 11.26 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001703/0.3404, allocations: 1.114 MB / 0.5707 GB, free: 10.14 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000946/0.3414, allocations: 425.8 kB / 0.5711 GB, free: 9.703 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007605/0.3421, allocations: 386.6 kB / 0.5714 GB, free: 9.324 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007071/0.3428, allocations: 394 kB / 0.5718 GB, free: 8.938 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001927/0.343, allocations: 99.94 kB / 0.5719 GB, free: 8.84 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003934/0.3434, allocations: 156 kB / 0.5721 GB, free: 8.688 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002617/0.3437, allocations: 215.3 kB / 0.5723 GB, free: 8.477 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000607/0.3443, allocations: 477.5 kB / 0.5727 GB, free: 8.008 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001997/0.3463, allocations: 1.282 MB / 0.574 GB, free: 6.723 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.883e-06/0.3463, allocations: 0 / 0.574 GB, free: 6.723 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.3463, allocations: 0 / 0.574 GB, free: 6.723 MB / 414.1 MB Notification: Performance of Transformations before backend: time 3.343e-05/0.3463, allocations: 0 / 0.574 GB, free: 6.723 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.002041/0.3484, allocations: 1.085 MB / 0.575 GB, free: 5.605 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.213e-05/0.3484, allocations: 12.03 kB / 0.575 GB, free: 5.594 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001836/0.3486, allocations: 143.9 kB / 0.5752 GB, free: 5.445 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003377/0.349, allocations: 124.2 kB / 0.5753 GB, free: 5.324 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001123/0.3501, allocations: 0.5223 MB / 0.5758 GB, free: 4.773 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.522e-05/0.3501, allocations: 66 kB / 0.5759 GB, free: 4.707 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001513/0.3503, allocations: 91.95 kB / 0.576 GB, free: 4.617 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001739/0.352, allocations: 0.897 MB / 0.5768 GB, free: 3.66 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.928e-05/0.3521, allocations: 7.938 kB / 0.5768 GB, free: 3.652 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.925e-05/0.3521, allocations: 36 kB / 0.5769 GB, free: 3.617 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.65e-05/0.3522, allocations: 24 kB / 0.5769 GB, free: 3.594 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001138/0.3533, allocations: 0.5229 MB / 0.5774 GB, free: 3.066 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004244/0.3576, allocations: 3.512 MB / 0.5808 GB, free: 15.41 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005888/0.3581, allocations: 212.5 kB / 0.581 GB, free: 15.19 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001849/0.3583, allocations: 88.83 kB / 0.5811 GB, free: 15.1 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001267/0.3585, allocations: 19.98 kB / 0.5811 GB, free: 15.08 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.383e-05/0.3585, allocations: 42.56 kB / 0.5812 GB, free: 15.03 MB / 430.1 MB Notification: Performance of pre-optimization done (n=30): time 2.104e-06/0.3585, allocations: 0 / 0.5812 GB, free: 15.03 MB / 430.1 MB Notification: Performance of matching and sorting (n=35): time 0.002572/0.3611, allocations: 1.147 MB / 0.5823 GB, free: 13.82 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.706e-05/0.3611, allocations: 63.34 kB / 0.5824 GB, free: 13.75 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004979/0.3616, allocations: 401.9 kB / 0.5828 GB, free: 13.35 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 3.568e-05/0.3617, allocations: 37.64 kB / 0.5828 GB, free: 13.3 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000394/0.3621, allocations: 487.4 kB / 0.5833 GB, free: 12.82 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001257/0.3622, allocations: 134.9 kB / 0.5834 GB, free: 12.69 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001525/0.3623, allocations: 98.3 kB / 0.5835 GB, free: 12.58 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002084/0.3626, allocations: 358.8 kB / 0.5838 GB, free: 12.22 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002438/0.3628, allocations: 113.3 kB / 0.5839 GB, free: 12.11 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004049/0.3632, allocations: 315 kB / 0.5842 GB, free: 11.72 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007109/0.3639, allocations: 451.6 kB / 0.5847 GB, free: 11.19 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.172e-06/0.3639, allocations: 8 kB / 0.5847 GB, free: 11.18 MB / 430.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0009169/0.3648, allocations: 0.517 MB / 0.5852 GB, free: 10.66 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.458e-05/0.3649, allocations: 8 kB / 0.5852 GB, free: 10.65 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.274e-05/0.3649, allocations: 8 kB / 0.5852 GB, free: 10.64 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002241/0.3651, allocations: 36.84 kB / 0.5852 GB, free: 10.6 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004141/0.3655, allocations: 127.8 kB / 0.5853 GB, free: 10.48 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004619/0.366, allocations: 0.5606 MB / 0.5859 GB, free: 9.891 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002368/0.3662, allocations: 16 kB / 0.5859 GB, free: 9.875 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.743e-05/0.3663, allocations: 31.94 kB / 0.5859 GB, free: 9.844 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.0003812/0.3666, allocations: 229.6 kB / 0.5862 GB, free: 9.609 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.366e-05/0.3667, allocations: 55.61 kB / 0.5862 GB, free: 9.555 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007052/0.3674, allocations: 331.2 kB / 0.5865 GB, free: 9.223 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.063e-06/0.3674, allocations: 4 kB / 0.5865 GB, free: 9.219 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.3674, allocations: 0 / 0.5865 GB, free: 9.219 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.005e-05/0.3675, allocations: 4 kB / 0.5865 GB, free: 9.215 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001727/0.3692, allocations: 1.034 MB / 0.5875 GB, free: 8.113 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.3692, allocations: 4 kB / 0.5875 GB, free: 8.109 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003651/0.3696, allocations: 75.89 kB / 0.5876 GB, free: 8.035 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001637/0.3697, allocations: 40.78 kB / 0.5877 GB, free: 7.992 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.814e-05/0.3697, allocations: 8 kB / 0.5877 GB, free: 7.984 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004067/0.3702, allocations: 0.5448 MB / 0.5882 GB, free: 7.414 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.3702, allocations: 0 / 0.5882 GB, free: 7.414 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008533/0.371, allocations: 0.564 MB / 0.5887 GB, free: 6.812 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.965e-05/0.3711, allocations: 39.67 kB / 0.5888 GB, free: 6.773 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.169e-05/0.3712, allocations: 12 kB / 0.5888 GB, free: 6.762 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001576/0.3713, allocations: 8 kB / 0.5888 GB, free: 6.754 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.598e-05/0.3714, allocations: 31.89 kB / 0.5888 GB, free: 6.723 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.648e-05/0.3714, allocations: 11.98 kB / 0.5888 GB, free: 6.711 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003984/0.3718, allocations: 267.2 kB / 0.5891 GB, free: 6.449 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3718, allocations: 4 kB / 0.5891 GB, free: 6.445 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0006016/0.3724, allocations: 128 kB / 0.5892 GB, free: 6.32 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.001298/0.3737, allocations: 1.116 MB / 0.5903 GB, free: 5.156 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0007618/0.3745, allocations: 320.6 kB / 0.5906 GB, free: 4.844 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.115e-06/0.3745, allocations: 0 / 0.5906 GB, free: 4.844 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002861/0.3747, allocations: 127.8 kB / 0.5907 GB, free: 4.719 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005901/0.3753, allocations: 90.39 kB / 0.5908 GB, free: 4.637 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007658/0.383, allocations: 4.854 MB / 0.5956 GB, free: 15.5 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009706/0.384, allocations: 0.9602 MB / 0.5965 GB, free: 14.52 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0002438/0.3842, allocations: 64.53 kB / 0.5966 GB, free: 14.45 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004099/0.3846, allocations: 295.3 kB / 0.5968 GB, free: 14.16 MB / 446.1 MB Notification: Performance of SimCode: time 1.423e-06/0.3846, allocations: 0 / 0.5968 GB, free: 14.16 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04645/0.4311, allocations: 9.867 MB / 0.6065 GB, free: 4.449 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.15/13.58, allocations: 14.12 kB / 0.6065 GB, free: 4.441 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.525918036000803]