Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.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.001425/0.001425, allocations: 113.4 kB / 20.43 MB, free: 1.457 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.001601/0.001601, allocations: 214.4 kB / 23.75 MB, free: 4.668 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.552/1.552, allocations: 230.6 MB / 257.5 MB, free: 8.004 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.2497/0.2497, allocations: 44.9 MB / 358.8 MB, free: 6.285 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.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",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.002369/0.002369, allocations: 67.91 kB / 0.4931 GB, free: 10.73 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3817/0.384, allocations: 65.48 MB / 0.557 GB, free: 7.516 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003519/0.3875, allocations: 1.931 MB / 0.5589 GB, free: 5.84 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001069/0.3886, allocations: 0.5698 MB / 0.5595 GB, free: 5.266 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.969e-05/0.3887, allocations: 8 kB / 0.5595 GB, free: 5.258 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001415/0.3888, allocations: 27.72 kB / 0.5595 GB, free: 5.23 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001328/0.389, allocations: 39.64 kB / 0.5595 GB, free: 5.191 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002487/0.3892, allocations: 39.95 kB / 0.5596 GB, free: 5.152 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002225/0.3895, allocations: 159.2 kB / 0.5597 GB, free: 4.996 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000174/0.3896, allocations: 55.59 kB / 0.5598 GB, free: 4.938 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001756/0.3898, allocations: 59.84 kB / 0.5598 GB, free: 4.879 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001491/0.39, allocations: 63.7 kB / 0.5599 GB, free: 4.816 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.927e-05/0.39, allocations: 16 kB / 0.5599 GB, free: 4.801 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.547e-05/0.39, allocations: 12 kB / 0.5599 GB, free: 4.789 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.322e-05/0.3901, allocations: 35.78 kB / 0.56 GB, free: 4.754 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 8.152e-05/0.3902, allocations: 71.67 kB / 0.56 GB, free: 4.684 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002484/0.3904, allocations: 151.3 kB / 0.5602 GB, free: 4.535 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.3904, allocations: 0 / 0.5602 GB, free: 4.535 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.3904, allocations: 0 / 0.5602 GB, free: 4.535 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.212e-05/0.3904, allocations: 4 kB / 0.5602 GB, free: 4.531 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0006011/0.391, allocations: 361.7 kB / 0.5605 GB, free: 4.148 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.683e-05/0.3911, allocations: 16.03 kB / 0.5605 GB, free: 4.133 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.183e-05/0.3911, allocations: 42.75 kB / 0.5606 GB, free: 4.082 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001505/0.3913, allocations: 24.83 kB / 0.5606 GB, free: 4.059 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002968/0.3916, allocations: 154.3 kB / 0.5607 GB, free: 3.883 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.013e-05/0.3916, allocations: 8.375 kB / 0.5608 GB, free: 3.875 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.801e-05/0.3916, allocations: 16.33 kB / 0.5608 GB, free: 3.859 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002854/0.3919, allocations: 130.1 kB / 0.5609 GB, free: 3.727 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.578e-05/0.3919, allocations: 7.938 kB / 0.5609 GB, free: 3.719 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.686e-05/0.3919, allocations: 8 kB / 0.5609 GB, free: 3.711 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.314e-05/0.392, allocations: 4 kB / 0.5609 GB, free: 3.707 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001968/0.3922, allocations: 83.94 kB / 0.561 GB, free: 3.625 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000747/0.3929, allocations: 435.4 kB / 0.5614 GB, free: 3.156 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002376/0.3931, allocations: 118.4 kB / 0.5615 GB, free: 3.031 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001263/0.3933, allocations: 52.83 kB / 0.5616 GB, free: 2.977 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.559e-05/0.3933, allocations: 4 kB / 0.5616 GB, free: 2.973 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.606e-05/0.3933, allocations: 30.56 kB / 0.5616 GB, free: 2.934 MB / 398.1 MB Notification: Performance of pre-optimization done (n=13): time 1.242e-06/0.3933, allocations: 0 / 0.5616 GB, free: 2.934 MB / 398.1 MB Notification: Performance of matching and sorting (n=19): time 0.001538/0.3949, allocations: 0.6711 MB / 0.5623 GB, free: 2.207 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.856e-05/0.3949, allocations: 51.41 kB / 0.5623 GB, free: 2.145 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001559/0.3951, allocations: 142.6 kB / 0.5624 GB, free: 1.996 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.5e-05/0.3951, allocations: 29.7 kB / 0.5625 GB, free: 1.961 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.439e-05/0.3952, allocations: 112.4 kB / 0.5626 GB, free: 1.844 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.477e-05/0.3952, allocations: 75.38 kB / 0.5626 GB, free: 1.77 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.415e-05/0.3953, allocations: 41.64 kB / 0.5627 GB, free: 1.723 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001717/0.3955, allocations: 322.8 kB / 0.563 GB, free: 1.398 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001045/0.3956, allocations: 39.98 kB / 0.563 GB, free: 1.359 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001285/0.3957, allocations: 81.03 kB / 0.5631 GB, free: 1.27 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002378/0.3959, allocations: 135.3 kB / 0.5632 GB, free: 1.125 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.81e-07/0.396, allocations: 0 / 0.5632 GB, free: 1.125 MB / 398.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003932/0.3963, allocations: 206.2 kB / 0.5634 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.41e-05/0.3964, allocations: 11.94 kB / 0.5634 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.899e-06/0.3964, allocations: 3.938 kB / 0.5635 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001836/0.3966, allocations: 44.86 kB / 0.5635 GB, free: 0.8516 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001712/0.3967, allocations: 35.92 kB / 0.5635 GB, free: 0.8164 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001706/0.3984, allocations: 1.637 MB / 0.5651 GB, free: 15.07 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.123e-05/0.3985, allocations: 8.031 kB / 0.5651 GB, free: 15.06 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.263e-05/0.3985, allocations: 4.25 kB / 0.5651 GB, free: 15.05 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (17): * Single equations (assignments): 16 * 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): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001317/0.3987, allocations: 125.8 kB / 0.5653 GB, free: 14.92 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.643e-05/0.3987, allocations: 12.02 kB / 0.5653 GB, free: 14.91 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.486e-05/0.3987, allocations: 25.11 kB / 0.5653 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/0.3987, allocations: 7.938 kB / 0.5653 GB, free: 14.88 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.673e-06/0.3988, allocations: 7.938 kB / 0.5653 GB, free: 14.87 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.3988, allocations: 0 / 0.5653 GB, free: 14.87 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008045/0.3996, allocations: 0.5209 MB / 0.5658 GB, free: 14.3 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.3996, allocations: 7.969 kB / 0.5658 GB, free: 14.29 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001696/0.3997, allocations: 35.97 kB / 0.5659 GB, free: 14.25 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001091/0.3998, allocations: 32.88 kB / 0.5659 GB, free: 14.22 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.174e-05/0.3999, allocations: 4 kB / 0.5659 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001262/0.4011, allocations: 1.373 MB / 0.5672 GB, free: 12.73 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.624e-06/0.4011, allocations: 0 / 0.5672 GB, free: 12.73 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005353/0.4017, allocations: 352.5 kB / 0.5676 GB, free: 12.36 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.125e-05/0.4017, allocations: 11.94 kB / 0.5676 GB, free: 12.35 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.991e-05/0.4017, allocations: 4 kB / 0.5676 GB, free: 12.35 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.411e-05/0.4018, allocations: 7.984 kB / 0.5676 GB, free: 12.34 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.43e-05/0.4018, allocations: 15.92 kB / 0.5676 GB, free: 12.32 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.277e-05/0.4019, allocations: 7.984 kB / 0.5676 GB, free: 12.32 MB / 414.1 MB Notification: Performance of sorting global known variables: time 8.412e-05/0.4019, allocations: 107.3 kB / 0.5677 GB, free: 12.21 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4019, allocations: 4.062 kB / 0.5677 GB, free: 12.21 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003376/0.4023, allocations: 40 kB / 0.5678 GB, free: 12.17 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (J1.phi,J1.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 (16): * Single equations (assignments): 15 * 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): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008724/0.4031, allocations: 0.8804 MB / 0.5686 GB, free: 11.26 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005672/0.4037, allocations: 257.2 kB / 0.5689 GB, free: 11 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.4037, allocations: 0 / 0.5689 GB, free: 11 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002834/0.404, allocations: 186.5 kB / 0.569 GB, free: 10.8 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003595/0.4044, allocations: 28.11 kB / 0.5691 GB, free: 10.77 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00283/0.4072, allocations: 2.063 MB / 0.5711 GB, free: 8.598 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004133/0.4076, allocations: 0.7206 MB / 0.5718 GB, free: 7.848 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.966e-05/0.4077, allocations: 13.42 kB / 0.5718 GB, free: 7.832 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.093e-05/0.4077, allocations: 39.42 kB / 0.5718 GB, free: 7.793 MB / 414.1 MB Notification: Performance of SimCode: time 1.102e-06/0.4077, allocations: 0 / 0.5718 GB, free: 7.793 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03959/0.4473, allocations: 3.619 MB / 0.5754 GB, free: 4.316 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.17/12.62, allocations: 4 kB / 0.5754 GB, free: 4.312 MB / 414.1 MB " [Timeout remaining time 647] (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219912 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.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: 15.809098000871018]