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.001417/0.001417, allocations: 105.1 kB / 21.21 MB, free: 0.6523 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.00168/0.00168, allocations: 211.9 kB / 24.51 MB, free: 3.941 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.57/1.57, allocations: 230.6 MB / 258.3 MB, free: 7.805 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.2313/0.2313, allocations: 44.94 MB / 359.6 MB, free: 6.074 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.002118/0.002118, allocations: 73.23 kB / 0.4938 GB, free: 10.58 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3525/0.3546, allocations: 65.47 MB / 0.5577 GB, free: 7.359 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003814/0.3584, allocations: 1.859 MB / 0.5595 GB, free: 5.715 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001187/0.3596, allocations: 0.5309 MB / 0.56 GB, free: 5.18 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001162/0.3597, allocations: 7.938 kB / 0.5601 GB, free: 5.172 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001487/0.3598, allocations: 19.78 kB / 0.5601 GB, free: 5.152 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001027/0.36, allocations: 39.64 kB / 0.5601 GB, free: 5.113 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002725/0.3602, allocations: 51.88 kB / 0.5602 GB, free: 5.062 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002356/0.3605, allocations: 151.3 kB / 0.5603 GB, free: 4.914 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001787/0.3606, allocations: 43.67 kB / 0.5603 GB, free: 4.867 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002116/0.3608, allocations: 75.7 kB / 0.5604 GB, free: 4.793 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00013/0.361, allocations: 63.7 kB / 0.5605 GB, free: 4.73 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.88e-05/0.361, allocations: 12 kB / 0.5605 GB, free: 4.719 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.373e-05/0.3611, allocations: 16 kB / 0.5605 GB, free: 4.703 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.564e-05/0.3611, allocations: 27.91 kB / 0.5605 GB, free: 4.676 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 8.549e-05/0.3612, allocations: 63.72 kB / 0.5606 GB, free: 4.613 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002793/0.3615, allocations: 155.3 kB / 0.5607 GB, free: 4.461 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.3615, allocations: 0 / 0.5607 GB, free: 4.461 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3615, allocations: 0 / 0.5607 GB, free: 4.461 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.482e-06/0.3615, allocations: 0 / 0.5607 GB, free: 4.461 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.0006457/0.3621, allocations: 369.7 kB / 0.5611 GB, free: 4.07 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.932e-05/0.3622, allocations: 8.031 kB / 0.5611 GB, free: 4.062 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.758e-05/0.3622, allocations: 4.188 kB / 0.5611 GB, free: 4.059 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.539e-05/0.3623, allocations: 50.73 kB / 0.5612 GB, free: 4 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001555/0.3624, allocations: 28.83 kB / 0.5612 GB, free: 3.973 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003148/0.3628, allocations: 150.3 kB / 0.5613 GB, free: 3.801 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.456e-05/0.3628, allocations: 8.375 kB / 0.5613 GB, free: 3.793 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.276e-05/0.3628, allocations: 20.08 kB / 0.5614 GB, free: 3.773 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002835/0.3631, allocations: 130.1 kB / 0.5615 GB, free: 3.641 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.725e-05/0.3631, allocations: 3.984 kB / 0.5615 GB, free: 3.637 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.752e-05/0.3631, allocations: 4 kB / 0.5615 GB, free: 3.633 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.017e-05/0.3631, allocations: 4 kB / 0.5615 GB, free: 3.629 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002168/0.3634, allocations: 91.88 kB / 0.5616 GB, free: 3.539 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007478/0.3641, allocations: 403.5 kB / 0.562 GB, free: 3.102 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002518/0.3644, allocations: 118.4 kB / 0.5621 GB, free: 2.977 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000112/0.3645, allocations: 48.84 kB / 0.5621 GB, free: 2.926 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.67e-05/0.3645, allocations: 4 kB / 0.5621 GB, free: 2.922 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.003e-05/0.3645, allocations: 38.5 kB / 0.5622 GB, free: 2.875 MB / 398.1 MB Notification: Performance of pre-optimization done (n=13): time 1.302e-06/0.3645, allocations: 0 / 0.5622 GB, free: 2.875 MB / 398.1 MB Notification: Performance of matching and sorting (n=19): time 0.001595/0.3661, allocations: 0.6614 MB / 0.5628 GB, free: 2.16 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.654e-05/0.3662, allocations: 59.39 kB / 0.5629 GB, free: 2.09 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001502/0.3663, allocations: 148.3 kB / 0.563 GB, free: 1.938 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.578e-05/0.3664, allocations: 25.7 kB / 0.563 GB, free: 1.906 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.93e-05/0.3665, allocations: 116.4 kB / 0.5631 GB, free: 1.785 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.42e-05/0.3665, allocations: 71.38 kB / 0.5632 GB, free: 1.715 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.93e-05/0.3666, allocations: 37.7 kB / 0.5632 GB, free: 1.672 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001551/0.3668, allocations: 326.8 kB / 0.5636 GB, free: 1.344 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001028/0.3669, allocations: 47.97 kB / 0.5636 GB, free: 1.297 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001388/0.367, allocations: 75.34 kB / 0.5637 GB, free: 1.211 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002307/0.3672, allocations: 135.3 kB / 0.5638 GB, free: 1.066 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.3672, allocations: 0 / 0.5638 GB, free: 1.066 MB / 398.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004152/0.3676, allocations: 206.1 kB / 0.564 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.985e-05/0.3677, allocations: 12.03 kB / 0.564 GB, free: 0.8438 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.78e-06/0.3677, allocations: 0 / 0.564 GB, free: 0.8438 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001823/0.3678, allocations: 40.83 kB / 0.564 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001798/0.368, allocations: 35.98 kB / 0.5641 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001761/0.3698, allocations: 1.633 MB / 0.5657 GB, free: 15.02 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.88e-05/0.3699, allocations: 8.094 kB / 0.5657 GB, free: 15.01 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.495e-05/0.3699, allocations: 8 kB / 0.5657 GB, free: 15 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.0001361/0.37, allocations: 125.8 kB / 0.5658 GB, free: 14.87 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.154e-05/0.3701, allocations: 15.89 kB / 0.5658 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.196e-05/0.3701, allocations: 21.06 kB / 0.5658 GB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.098e-06/0.3701, allocations: 4 kB / 0.5659 GB, free: 14.83 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.3701, allocations: 0 / 0.5659 GB, free: 14.83 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.3701, allocations: 0 / 0.5659 GB, free: 14.83 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008403/0.371, allocations: 0.5029 MB / 0.5663 GB, free: 14.27 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.791e-06/0.371, allocations: 4 kB / 0.5663 GB, free: 14.27 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001764/0.3712, allocations: 35.92 kB / 0.5664 GB, free: 14.23 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001211/0.3713, allocations: 32.83 kB / 0.5664 GB, free: 14.2 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.476e-05/0.3713, allocations: 4 kB / 0.5664 GB, free: 14.2 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00136/0.3727, allocations: 1.378 MB / 0.5678 GB, free: 12.7 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.662e-06/0.3727, allocations: 4.031 kB / 0.5678 GB, free: 12.7 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005445/0.3732, allocations: 344.9 kB / 0.5681 GB, free: 12.34 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.988e-05/0.3732, allocations: 15.92 kB / 0.5681 GB, free: 12.32 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.799e-05/0.3733, allocations: 0 / 0.5681 GB, free: 12.32 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001002/0.3734, allocations: 11.94 kB / 0.5681 GB, free: 12.31 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.82e-05/0.3734, allocations: 15.97 kB / 0.5681 GB, free: 12.3 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.294e-05/0.3734, allocations: 4 kB / 0.5681 GB, free: 12.29 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001096/0.3735, allocations: 113 kB / 0.5682 GB, free: 12.18 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3735, allocations: 4.125 kB / 0.5683 GB, free: 12.18 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000354/0.3739, allocations: 43.94 kB / 0.5683 GB, free: 12.14 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.0009417/0.3748, allocations: 0.8832 MB / 0.5692 GB, free: 11.23 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0007689/0.3756, allocations: 250.8 kB / 0.5694 GB, free: 10.97 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.3756, allocations: 4.125 kB / 0.5694 GB, free: 10.96 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004595/0.3761, allocations: 190.5 kB / 0.5696 GB, free: 10.77 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003802/0.3765, allocations: 16 kB / 0.5696 GB, free: 10.75 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002947/0.3794, allocations: 2.057 MB / 0.5716 GB, free: 8.582 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001467/0.3795, allocations: 111.6 kB / 0.5717 GB, free: 8.449 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.633e-05/0.3796, allocations: 17.41 kB / 0.5717 GB, free: 8.43 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.672e-05/0.3797, allocations: 43.42 kB / 0.5718 GB, free: 8.387 MB / 414.1 MB Notification: Performance of SimCode: time 7.61e-07/0.3797, allocations: 0 / 0.5718 GB, free: 8.387 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02903/0.4087, allocations: 3.702 MB / 0.5754 GB, free: 4.852 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.59/13, allocations: 7.938 kB / 0.5754 GB, free: 4.844 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: 16.24978643306531]