Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001323/0.001323, allocations: 111.1 kB / 20.44 MB, free: 1.32 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001462/0.001462, allocations: 206.6 kB / 23.72 MB, free: 4.496 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.45/1.45, allocations: 230.5 MB / 257.4 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2244/0.2244, allocations: 46.95 MB / 360.8 MB, free: 3.922 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.003477/0.003477, allocations: 87.8 kB / 0.4961 GB, free: 7.562 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3566/0.3601, allocations: 66.08 MB / 0.5607 GB, free: 4.02 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003142/0.3633, allocations: 1.866 MB / 0.5625 GB, free: 2.145 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009948/0.3643, allocations: 0.5309 MB / 0.563 GB, free: 1.609 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.414e-05/0.3643, allocations: 3.938 kB / 0.563 GB, free: 1.605 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001268/0.3645, allocations: 19.8 kB / 0.563 GB, free: 1.586 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001019/0.3646, allocations: 43.62 kB / 0.5631 GB, free: 1.543 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002295/0.3648, allocations: 47.89 kB / 0.5631 GB, free: 1.496 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002181/0.365, allocations: 155.2 kB / 0.5633 GB, free: 1.344 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001465/0.3652, allocations: 47.66 kB / 0.5633 GB, free: 1.293 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001604/0.3653, allocations: 67.77 kB / 0.5634 GB, free: 1.227 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001079/0.3654, allocations: 55.7 kB / 0.5634 GB, free: 1.172 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.406e-05/0.3655, allocations: 12 kB / 0.5634 GB, free: 1.16 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.999e-05/0.3655, allocations: 20 kB / 0.5635 GB, free: 1.141 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.266e-05/0.3656, allocations: 23.86 kB / 0.5635 GB, free: 1.117 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.825e-05/0.3656, allocations: 51.8 kB / 0.5635 GB, free: 1.066 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000235/0.3658, allocations: 163.3 kB / 0.5637 GB, free: 0.9062 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.389e-06/0.3659, allocations: 3.938 kB / 0.5637 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.3659, allocations: 0 / 0.5637 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.82e-06/0.3659, allocations: 4 kB / 0.5637 GB, free: 0.8984 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.0005909/0.3665, allocations: 361.7 kB / 0.564 GB, free: 0.5156 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.251e-05/0.3665, allocations: 12.03 kB / 0.5641 GB, free: 0.5039 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.501e-05/0.3666, allocations: 46.73 kB / 0.5641 GB, free: 460 kB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001634/0.3667, allocations: 24.83 kB / 0.5641 GB, free: 436 kB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002463/0.367, allocations: 154.3 kB / 0.5643 GB, free: 256 kB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.72e-05/0.367, allocations: 12.38 kB / 0.5643 GB, free: 244 kB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.343e-05/0.367, allocations: 16.33 kB / 0.5643 GB, free: 228 kB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002636/0.3673, allocations: 125.6 kB / 0.5644 GB, free: 96 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.311e-05/0.3673, allocations: 0 / 0.5644 GB, free: 96 kB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.599e-05/0.3673, allocations: 8 kB / 0.5644 GB, free: 88 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.803e-06/0.3673, allocations: 4 kB / 0.5644 GB, free: 84 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002113/0.3675, allocations: 87.97 kB / 0.5645 GB, free: 15.99 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007478/0.3683, allocations: 407.4 kB / 0.5649 GB, free: 15.55 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000222/0.3685, allocations: 110.4 kB / 0.565 GB, free: 15.44 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001137/0.3686, allocations: 60.83 kB / 0.5651 GB, free: 15.38 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.831e-05/0.3686, allocations: 0 / 0.5651 GB, free: 15.38 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.394e-05/0.3687, allocations: 38.5 kB / 0.5651 GB, free: 15.33 MB / 414.1 MB Notification: Performance of pre-optimization done (n=13): time 1.133e-06/0.3687, allocations: 0 / 0.5651 GB, free: 15.33 MB / 414.1 MB Notification: Performance of matching and sorting (n=19): time 0.001406/0.3701, allocations: 0.6589 MB / 0.5657 GB, free: 14.62 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.814e-05/0.3701, allocations: 59.41 kB / 0.5658 GB, free: 14.55 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001339/0.3703, allocations: 141.6 kB / 0.5659 GB, free: 14.4 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.009e-05/0.3703, allocations: 29.7 kB / 0.566 GB, free: 14.36 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.325e-05/0.3704, allocations: 112.4 kB / 0.5661 GB, free: 14.25 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.773e-05/0.3704, allocations: 71.39 kB / 0.5661 GB, free: 14.18 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.021e-05/0.3705, allocations: 37.7 kB / 0.5662 GB, free: 14.13 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001534/0.3706, allocations: 322.8 kB / 0.5665 GB, free: 13.81 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.708e-05/0.3707, allocations: 39.98 kB / 0.5665 GB, free: 13.77 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001277/0.3709, allocations: 87.28 kB / 0.5666 GB, free: 13.67 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002295/0.3711, allocations: 131.3 kB / 0.5667 GB, free: 13.53 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.162e-06/0.3711, allocations: 0 / 0.5667 GB, free: 13.53 MB / 414.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003794/0.3715, allocations: 206.3 kB / 0.5669 GB, free: 13.32 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.785e-05/0.3715, allocations: 7.938 kB / 0.5669 GB, free: 13.31 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/0.3715, allocations: 4 kB / 0.5669 GB, free: 13.31 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001658/0.3717, allocations: 44.84 kB / 0.567 GB, free: 13.26 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001665/0.3718, allocations: 35.97 kB / 0.567 GB, free: 13.23 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001564/0.3734, allocations: 1.625 MB / 0.5686 GB, free: 11.49 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.463e-05/0.3735, allocations: 8.031 kB / 0.5686 GB, free: 11.48 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.45e-05/0.3735, allocations: 8 kB / 0.5686 GB, free: 11.47 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.0001144/0.3736, allocations: 129.8 kB / 0.5687 GB, free: 11.34 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.775e-05/0.3736, allocations: 15.91 kB / 0.5688 GB, free: 11.32 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.761e-05/0.3737, allocations: 33.11 kB / 0.5688 GB, free: 11.29 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.566e-06/0.3737, allocations: 3.938 kB / 0.5688 GB, free: 11.29 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.3737, allocations: 0 / 0.5688 GB, free: 11.29 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.945e-06/0.3737, allocations: 0 / 0.5688 GB, free: 11.29 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007664/0.3745, allocations: 0.501 MB / 0.5693 GB, free: 10.73 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.3745, allocations: 0 / 0.5693 GB, free: 10.73 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001603/0.3746, allocations: 36.16 kB / 0.5693 GB, free: 10.7 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000105/0.3747, allocations: 36.81 kB / 0.5694 GB, free: 10.66 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.404e-05/0.3747, allocations: 8 kB / 0.5694 GB, free: 10.65 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00115/0.3759, allocations: 1.366 MB / 0.5707 GB, free: 9.168 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.44e-06/0.3759, allocations: 3.938 kB / 0.5707 GB, free: 9.164 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005116/0.3764, allocations: 343.6 kB / 0.571 GB, free: 8.809 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.264e-05/0.3764, allocations: 12.2 kB / 0.571 GB, free: 8.797 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.364e-05/0.3764, allocations: 15.98 kB / 0.5711 GB, free: 8.781 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.614e-05/0.3765, allocations: 7.984 kB / 0.5711 GB, free: 8.773 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.409e-05/0.3766, allocations: 23.84 kB / 0.5711 GB, free: 8.75 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.043e-05/0.3766, allocations: 4 kB / 0.5711 GB, free: 8.746 MB / 414.1 MB Notification: Performance of sorting global known variables: time 8.197e-05/0.3767, allocations: 107.3 kB / 0.5712 GB, free: 8.641 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3767, allocations: 0 / 0.5712 GB, free: 8.641 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003221/0.377, allocations: 40 kB / 0.5712 GB, free: 8.602 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.0008308/0.3778, allocations: 0.8804 MB / 0.5721 GB, free: 7.691 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0004968/0.3783, allocations: 250.8 kB / 0.5723 GB, free: 7.434 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.3783, allocations: 0 / 0.5723 GB, free: 7.434 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002739/0.3786, allocations: 190.5 kB / 0.5725 GB, free: 7.234 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003322/0.3789, allocations: 25.33 kB / 0.5725 GB, free: 7.215 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002548/0.3815, allocations: 2.066 MB / 0.5746 GB, free: 5.039 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001159/0.3816, allocations: 111.7 kB / 0.5747 GB, free: 4.906 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.822e-05/0.3817, allocations: 13.41 kB / 0.5747 GB, free: 4.891 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.517e-05/0.3817, allocations: 43.42 kB / 0.5747 GB, free: 4.848 MB / 414.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3817, allocations: 0 / 0.5747 GB, free: 4.848 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03417/0.4159, allocations: 4.011 MB / 0.5786 GB, free: 0.9531 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.47/11.88, allocations: 10.03 kB / 0.5786 GB, free: 0.9492 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219912 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_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_trunk_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: 14.823858098126948]