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.001344/0.001344, allocations: 112.2 kB / 21.22 MB, free: 0.7305 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.001501/0.001501, allocations: 212.2 kB / 24.53 MB, free: 4.07 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.51/1.51, allocations: 230.6 MB / 258.3 MB, free: 8.008 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.2447/0.2447, allocations: 44.91 MB / 359.6 MB, free: 6.266 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.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",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.002141/0.002141, allocations: 55.91 kB / 0.4938 GB, free: 10.73 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.379/0.3811, allocations: 65.48 MB / 0.5578 GB, free: 7.523 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003635/0.3848, allocations: 1.937 MB / 0.5597 GB, free: 5.844 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001158/0.3859, allocations: 0.5776 MB / 0.5602 GB, free: 5.262 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001095/0.386, allocations: 7.938 kB / 0.5602 GB, free: 5.254 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001392/0.3862, allocations: 19.8 kB / 0.5603 GB, free: 5.234 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001057/0.3863, allocations: 39.64 kB / 0.5603 GB, free: 5.195 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002656/0.3865, allocations: 51.88 kB / 0.5603 GB, free: 5.145 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002274/0.3868, allocations: 151.3 kB / 0.5605 GB, free: 4.996 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001694/0.3869, allocations: 51.78 kB / 0.5605 GB, free: 4.941 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001903/0.3871, allocations: 59.8 kB / 0.5606 GB, free: 4.883 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001285/0.3873, allocations: 67.69 kB / 0.5607 GB, free: 4.816 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.523e-05/0.3873, allocations: 16 kB / 0.5607 GB, free: 4.801 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.774e-05/0.3873, allocations: 16 kB / 0.5607 GB, free: 4.785 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.193e-05/0.3874, allocations: 31.91 kB / 0.5607 GB, free: 4.754 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 8.343e-05/0.3875, allocations: 67.61 kB / 0.5608 GB, free: 4.688 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002771/0.3877, allocations: 155.3 kB / 0.5609 GB, free: 4.535 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.643e-06/0.3877, allocations: 4 kB / 0.5609 GB, free: 4.531 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.3877, allocations: 0 / 0.5609 GB, free: 4.531 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.034e-06/0.3878, allocations: 0 / 0.5609 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.0006317/0.3884, allocations: 361.7 kB / 0.5613 GB, free: 4.148 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.478e-05/0.3884, allocations: 12.03 kB / 0.5613 GB, free: 4.137 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.704e-05/0.3885, allocations: 8.125 kB / 0.5613 GB, free: 4.129 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.726e-05/0.3885, allocations: 42.75 kB / 0.5613 GB, free: 4.078 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001495/0.3887, allocations: 28.77 kB / 0.5614 GB, free: 4.051 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003045/0.389, allocations: 150.3 kB / 0.5615 GB, free: 3.879 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.524e-05/0.389, allocations: 12.31 kB / 0.5615 GB, free: 3.867 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.891e-05/0.389, allocations: 20.08 kB / 0.5615 GB, free: 3.848 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002984/0.3893, allocations: 138.1 kB / 0.5617 GB, free: 3.707 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.331e-05/0.3893, allocations: 0 / 0.5617 GB, free: 3.707 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.622e-05/0.3893, allocations: 4 kB / 0.5617 GB, free: 3.703 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.424e-06/0.3894, allocations: 4 kB / 0.5617 GB, free: 3.699 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001975/0.3895, allocations: 79.94 kB / 0.5618 GB, free: 3.621 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007934/0.3903, allocations: 439.3 kB / 0.5622 GB, free: 3.148 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002386/0.3906, allocations: 110.5 kB / 0.5623 GB, free: 3.031 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001144/0.3907, allocations: 52.83 kB / 0.5623 GB, free: 2.977 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.28e-05/0.3907, allocations: 3.984 kB / 0.5623 GB, free: 2.973 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.031e-05/0.3907, allocations: 34.56 kB / 0.5624 GB, free: 2.93 MB / 398.1 MB Notification: Performance of pre-optimization done (n=13): time 1.372e-06/0.3907, allocations: 0 / 0.5624 GB, free: 2.93 MB / 398.1 MB Notification: Performance of matching and sorting (n=19): time 0.00159/0.3923, allocations: 0.6659 MB / 0.563 GB, free: 2.211 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.2e-05/0.3924, allocations: 51.41 kB / 0.5631 GB, free: 2.148 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000151/0.3925, allocations: 145.6 kB / 0.5632 GB, free: 1.996 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.272e-05/0.3926, allocations: 25.7 kB / 0.5632 GB, free: 1.965 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.226e-05/0.3926, allocations: 120.4 kB / 0.5633 GB, free: 1.84 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.746e-05/0.3927, allocations: 71.38 kB / 0.5634 GB, free: 1.77 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.623e-05/0.3928, allocations: 37.7 kB / 0.5635 GB, free: 1.727 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002028/0.393, allocations: 322.8 kB / 0.5638 GB, free: 1.402 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001021/0.3931, allocations: 43.98 kB / 0.5638 GB, free: 1.359 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001305/0.3932, allocations: 81.03 kB / 0.5639 GB, free: 1.27 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002431/0.3934, allocations: 139.3 kB / 0.564 GB, free: 1.121 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.032e-06/0.3935, allocations: 0 / 0.564 GB, free: 1.121 MB / 398.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000422/0.3939, allocations: 206.2 kB / 0.5642 GB, free: 0.9102 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.03e-05/0.3939, allocations: 4 kB / 0.5642 GB, free: 0.9062 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.786e-06/0.3939, allocations: 3.984 kB / 0.5642 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000195/0.3941, allocations: 56.75 kB / 0.5643 GB, free: 0.8438 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000176/0.3943, allocations: 31.97 kB / 0.5643 GB, free: 0.8125 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001814/0.3961, allocations: 1.645 MB / 0.5659 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.545e-05/0.3962, allocations: 4 kB / 0.5659 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.592e-05/0.3962, allocations: 8 kB / 0.5659 GB, free: 15.04 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.0001536/0.3964, allocations: 129.8 kB / 0.566 GB, free: 14.91 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.676e-05/0.3964, allocations: 11.95 kB / 0.5661 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.447e-05/0.3964, allocations: 21.05 kB / 0.5661 GB, free: 14.88 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.3964, allocations: 4 kB / 0.5661 GB, free: 14.87 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/0.3965, allocations: 48 / 0.5661 GB, free: 14.87 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.915e-06/0.3965, allocations: 3.984 kB / 0.5661 GB, free: 14.87 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000964/0.3974, allocations: 0.5249 MB / 0.5666 GB, free: 14.29 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.97e-06/0.3974, allocations: 3.984 kB / 0.5666 GB, free: 14.29 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001724/0.3976, allocations: 35.98 kB / 0.5666 GB, free: 14.25 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000122/0.3977, allocations: 28.84 kB / 0.5667 GB, free: 14.22 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.483e-05/0.3977, allocations: 4 kB / 0.5667 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001318/0.3991, allocations: 1.369 MB / 0.568 GB, free: 12.73 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.3991, allocations: 0 / 0.568 GB, free: 12.73 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005814/0.3996, allocations: 352.8 kB / 0.5683 GB, free: 12.37 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.888e-05/0.3997, allocations: 11.94 kB / 0.5683 GB, free: 12.36 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.16e-05/0.3997, allocations: 8 kB / 0.5684 GB, free: 12.35 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001002/0.3998, allocations: 11.92 kB / 0.5684 GB, free: 12.34 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.632e-05/0.3998, allocations: 19.91 kB / 0.5684 GB, free: 12.32 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.52e-05/0.3999, allocations: 12 kB / 0.5684 GB, free: 12.3 MB / 414.1 MB Notification: Performance of sorting global known variables: time 9.814e-05/0.4, allocations: 107.3 kB / 0.5685 GB, free: 12.2 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4, allocations: 0 / 0.5685 GB, free: 12.2 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003447/0.4003, allocations: 36 kB / 0.5685 GB, free: 12.16 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.0008766/0.4012, allocations: 0.8801 MB / 0.5694 GB, free: 11.25 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005655/0.4017, allocations: 257.7 kB / 0.5696 GB, free: 10.99 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.4017, allocations: 0 / 0.5696 GB, free: 10.99 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002804/0.402, allocations: 186.7 kB / 0.5698 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.0003725/0.4024, allocations: 24.22 kB / 0.5698 GB, free: 10.77 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002866/0.4053, allocations: 2.067 MB / 0.5719 GB, free: 8.594 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004006/0.4057, allocations: 0.7206 MB / 0.5726 GB, free: 7.844 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.715e-05/0.4057, allocations: 17.36 kB / 0.5726 GB, free: 7.824 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.1e-05/0.4058, allocations: 39.42 kB / 0.5726 GB, free: 7.785 MB / 414.1 MB Notification: Performance of SimCode: time 1.062e-06/0.4058, allocations: 0 / 0.5726 GB, free: 7.785 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02993/0.4357, allocations: 3.639 MB / 0.5762 GB, free: 4.297 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.24/12.67, allocations: 9.859 kB / 0.5762 GB, free: 4.293 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.883609778014943]