Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001422/0.001422, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.001594/0.001594, allocations: 216.8 kB / 24.52 MB, free: 3.91 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.562/1.562, allocations: 230.6 MB / 258.3 MB, free: 7.773 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.262/0.262, allocations: 46.96 MB / 361.7 MB, free: 4.035 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.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002052/0.002052, allocations: 59.91 kB / 0.4969 GB, free: 7.734 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3793/0.3813, allocations: 66.03 MB / 0.5613 GB, free: 4.25 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.004187/0.3855, allocations: 1.858 MB / 0.5632 GB, free: 2.379 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001408/0.3869, allocations: 0.5309 MB / 0.5637 GB, free: 1.844 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001277/0.387, allocations: 4 kB / 0.5637 GB, free: 1.84 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001695/0.3872, allocations: 19.8 kB / 0.5637 GB, free: 1.82 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001315/0.3873, allocations: 43.62 kB / 0.5637 GB, free: 1.777 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003395/0.3877, allocations: 51.88 kB / 0.5638 GB, free: 1.727 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002557/0.3879, allocations: 155.3 kB / 0.5639 GB, free: 1.574 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002285/0.3882, allocations: 51.64 kB / 0.564 GB, free: 1.52 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002362/0.3884, allocations: 63.78 kB / 0.564 GB, free: 1.457 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001512/0.3885, allocations: 67.69 kB / 0.5641 GB, free: 1.391 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.18e-05/0.3886, allocations: 12 kB / 0.5641 GB, free: 1.379 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.987e-05/0.3886, allocations: 12 kB / 0.5641 GB, free: 1.367 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 4.284e-05/0.3887, allocations: 31.86 kB / 0.5642 GB, free: 1.336 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 9.038e-05/0.3888, allocations: 55.73 kB / 0.5642 GB, free: 1.281 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003308/0.3891, allocations: 159.3 kB / 0.5644 GB, free: 1.125 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.452e-06/0.3891, allocations: 0 / 0.5644 GB, free: 1.125 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3891, allocations: 7.938 kB / 0.5644 GB, free: 1.117 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.064e-05/0.3891, allocations: 3.984 kB / 0.5644 GB, free: 1.113 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.0007273/0.3899, allocations: 357.7 kB / 0.5647 GB, free: 0.7344 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.704e-05/0.3899, allocations: 8.031 kB / 0.5647 GB, free: 0.7266 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.658e-05/0.3899, allocations: 4.188 kB / 0.5647 GB, free: 0.7227 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.101e-05/0.39, allocations: 46.73 kB / 0.5648 GB, free: 0.668 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001753/0.3901, allocations: 28.78 kB / 0.5648 GB, free: 0.6406 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003506/0.3905, allocations: 150.3 kB / 0.5649 GB, free: 480 kB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.241e-05/0.3905, allocations: 12.38 kB / 0.565 GB, free: 468 kB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.048e-05/0.3906, allocations: 24.06 kB / 0.565 GB, free: 444 kB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003013/0.3909, allocations: 126.2 kB / 0.5651 GB, free: 312 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.867e-05/0.3909, allocations: 4 kB / 0.5651 GB, free: 308 kB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.703e-05/0.3909, allocations: 4 kB / 0.5651 GB, free: 304 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.073e-06/0.3909, allocations: 4 kB / 0.5651 GB, free: 300 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001945/0.3911, allocations: 87.88 kB / 0.5652 GB, free: 212 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009158/0.392, allocations: 411.5 kB / 0.5656 GB, free: 15.76 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002781/0.3923, allocations: 110.5 kB / 0.5657 GB, free: 15.64 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001232/0.3924, allocations: 56.83 kB / 0.5657 GB, free: 15.59 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.653e-05/0.3924, allocations: 0 / 0.5657 GB, free: 15.59 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.299e-05/0.3925, allocations: 30.56 kB / 0.5658 GB, free: 15.55 MB / 414.1 MB Notification: Performance of pre-optimization done (n=13): time 1.072e-06/0.3925, allocations: 0 / 0.5658 GB, free: 15.55 MB / 414.1 MB Notification: Performance of matching and sorting (n=19): time 0.001648/0.3941, allocations: 0.67 MB / 0.5664 GB, free: 14.82 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.206e-05/0.3942, allocations: 59.34 kB / 0.5665 GB, free: 14.75 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000161/0.3943, allocations: 144 kB / 0.5666 GB, free: 14.61 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.527e-05/0.3944, allocations: 29.7 kB / 0.5667 GB, free: 14.57 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.667e-05/0.3944, allocations: 108.4 kB / 0.5668 GB, free: 14.46 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.73e-05/0.3945, allocations: 75.38 kB / 0.5668 GB, free: 14.38 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.897e-05/0.3946, allocations: 33.7 kB / 0.5669 GB, free: 14.34 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001814/0.3948, allocations: 326.8 kB / 0.5672 GB, free: 14.02 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001084/0.3949, allocations: 39.98 kB / 0.5672 GB, free: 13.98 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000143/0.395, allocations: 86.34 kB / 0.5673 GB, free: 13.88 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000243/0.3953, allocations: 135.3 kB / 0.5674 GB, free: 13.74 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.082e-06/0.3953, allocations: 0 / 0.5674 GB, free: 13.74 MB / 414.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004605/0.3957, allocations: 214.1 kB / 0.5676 GB, free: 13.52 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.823e-05/0.3957, allocations: 4 kB / 0.5676 GB, free: 13.52 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.431e-06/0.3957, allocations: 0 / 0.5676 GB, free: 13.52 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001839/0.3959, allocations: 44.83 kB / 0.5677 GB, free: 13.47 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001788/0.3961, allocations: 35.95 kB / 0.5677 GB, free: 13.43 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00251/0.3986, allocations: 1.625 MB / 0.5693 GB, free: 11.7 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001028/0.3987, allocations: 12.02 kB / 0.5693 GB, free: 11.68 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.856e-05/0.3987, allocations: 8 kB / 0.5693 GB, free: 11.68 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.000171/0.3989, allocations: 129.8 kB / 0.5694 GB, free: 11.54 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.731e-05/0.399, allocations: 15.91 kB / 0.5695 GB, free: 11.52 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.336e-05/0.399, allocations: 25 kB / 0.5695 GB, free: 11.5 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.342e-06/0.399, allocations: 4 kB / 0.5695 GB, free: 11.5 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.794e-06/0.399, allocations: 0 / 0.5695 GB, free: 11.5 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.554e-06/0.399, allocations: 3.984 kB / 0.5695 GB, free: 11.49 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009573/0.4, allocations: 0.5016 MB / 0.57 GB, free: 10.94 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/0.4, allocations: 0 / 0.57 GB, free: 10.94 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001801/0.4002, allocations: 43.94 kB / 0.57 GB, free: 10.89 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000138/0.4003, allocations: 28.84 kB / 0.57 GB, free: 10.86 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.645e-05/0.4003, allocations: 4 kB / 0.57 GB, free: 10.86 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001665/0.402, allocations: 1.377 MB / 0.5714 GB, free: 9.367 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.402, allocations: 0 / 0.5714 GB, free: 9.367 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007335/0.4027, allocations: 350.7 kB / 0.5717 GB, free: 9.004 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.297e-05/0.4028, allocations: 11.94 kB / 0.5717 GB, free: 8.992 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.34e-05/0.4028, allocations: 8 kB / 0.5717 GB, free: 8.984 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.994e-05/0.4029, allocations: 7.938 kB / 0.5718 GB, free: 8.977 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.448e-05/0.403, allocations: 15.97 kB / 0.5718 GB, free: 8.961 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.037e-05/0.403, allocations: 4 kB / 0.5718 GB, free: 8.957 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001204/0.4031, allocations: 111.9 kB / 0.5719 GB, free: 8.848 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4031, allocations: 0 / 0.5719 GB, free: 8.848 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004075/0.4035, allocations: 36 kB / 0.5719 GB, free: 8.812 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.001274/0.4048, allocations: 0.8881 MB / 0.5728 GB, free: 7.895 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006638/0.4054, allocations: 250.8 kB / 0.573 GB, free: 7.637 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.4054, allocations: 0 / 0.573 GB, free: 7.637 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003336/0.4058, allocations: 190.7 kB / 0.5732 GB, free: 7.438 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004357/0.4062, allocations: 27.97 kB / 0.5732 GB, free: 7.41 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003288/0.4095, allocations: 2.066 MB / 0.5752 GB, free: 5.238 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001705/0.4097, allocations: 107.7 kB / 0.5753 GB, free: 5.109 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 8.388e-05/0.4097, allocations: 17.36 kB / 0.5754 GB, free: 5.09 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001183/0.4099, allocations: 39.42 kB / 0.5754 GB, free: 5.051 MB / 414.1 MB Notification: Performance of SimCode: time 3.196e-06/0.4099, allocations: 4 kB / 0.5754 GB, free: 5.047 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03419/0.444, allocations: 3.689 MB / 0.579 GB, free: 1.523 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.58/13.02, allocations: 8.062 kB / 0.579 GB, free: 1.516 MB / 414.1 MB " [Timeout remaining time 647] (rm -f ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219912 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain.fmu > ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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: 16.332031985977665]