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.001706/0.001706, 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 trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002096/0.002096, allocations: 214.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 trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.537/1.537, allocations: 230.5 MB / 258.2 MB, free: 7.992 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.2403/0.2403, allocations: 46.94 MB / 361.6 MB, free: 3.992 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.003714/0.003714, allocations: 79.88 kB / 0.4969 GB, free: 7.609 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3754/0.3791, allocations: 66.09 MB / 0.5614 GB, free: 3.977 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003717/0.3829, allocations: 1.846 MB / 0.5632 GB, free: 2.121 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001188/0.3841, allocations: 0.5348 MB / 0.5638 GB, free: 1.582 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001162/0.3842, allocations: 7.938 kB / 0.5638 GB, free: 1.574 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001468/0.3843, allocations: 19.8 kB / 0.5638 GB, free: 1.555 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001183/0.3844, allocations: 43.62 kB / 0.5638 GB, free: 1.512 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002684/0.3847, allocations: 47.88 kB / 0.5639 GB, free: 1.465 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002214/0.3849, allocations: 147.3 kB / 0.564 GB, free: 1.32 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001738/0.3851, allocations: 47.61 kB / 0.5641 GB, free: 1.27 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001857/0.3853, allocations: 75.7 kB / 0.5641 GB, free: 1.195 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001265/0.3854, allocations: 63.7 kB / 0.5642 GB, free: 1.133 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.65e-05/0.3854, allocations: 12 kB / 0.5642 GB, free: 1.121 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.194e-05/0.3855, allocations: 20 kB / 0.5642 GB, free: 1.102 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.894e-05/0.3855, allocations: 23.92 kB / 0.5642 GB, free: 1.078 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 7.647e-05/0.3856, allocations: 59.72 kB / 0.5643 GB, free: 1.02 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002597/0.3859, allocations: 155.3 kB / 0.5644 GB, free: 0.8672 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.581e-06/0.3859, allocations: 0 / 0.5644 GB, free: 0.8672 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3859, allocations: 0 / 0.5644 GB, free: 0.8672 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.488e-06/0.3859, allocations: 7.938 kB / 0.5645 GB, free: 0.8594 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.0006441/0.3865, allocations: 365.7 kB / 0.5648 GB, free: 484 kB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.538e-05/0.3866, allocations: 8.031 kB / 0.5648 GB, free: 476 kB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.343e-05/0.3866, allocations: 8.172 kB / 0.5648 GB, free: 468 kB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.405e-05/0.3867, allocations: 50.73 kB / 0.5649 GB, free: 408 kB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001645/0.3868, allocations: 24.83 kB / 0.5649 GB, free: 384 kB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003123/0.3871, allocations: 154.3 kB / 0.565 GB, free: 204 kB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.88e-05/0.3872, allocations: 12.36 kB / 0.5651 GB, free: 192 kB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.746e-05/0.3872, allocations: 20.08 kB / 0.5651 GB, free: 172 kB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002904/0.3875, allocations: 125.6 kB / 0.5652 GB, free: 40 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.545e-05/0.3875, allocations: 0 / 0.5652 GB, free: 40 kB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.604e-05/0.3875, allocations: 4 kB / 0.5652 GB, free: 36 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.655e-06/0.3875, allocations: 8 kB / 0.5652 GB, free: 28 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002433/0.3878, allocations: 87.92 kB / 0.5653 GB, free: 15.94 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007426/0.3885, allocations: 407.4 kB / 0.5657 GB, free: 15.5 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002514/0.3888, allocations: 106.5 kB / 0.5658 GB, free: 15.39 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001216/0.3889, allocations: 56.77 kB / 0.5658 GB, free: 15.33 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.006e-05/0.3889, allocations: 4 kB / 0.5658 GB, free: 15.32 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.08e-05/0.3889, allocations: 38.56 kB / 0.5659 GB, free: 15.28 MB / 414.1 MB Notification: Performance of pre-optimization done (n=13): time 4.048e-06/0.3889, allocations: 4 kB / 0.5659 GB, free: 15.27 MB / 414.1 MB Notification: Performance of matching and sorting (n=19): time 0.001593/0.3905, allocations: 0.6577 MB / 0.5665 GB, free: 14.56 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.69e-05/0.3906, allocations: 55.41 kB / 0.5666 GB, free: 14.5 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001541/0.3907, allocations: 149.5 kB / 0.5667 GB, free: 14.34 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.804e-05/0.3908, allocations: 25.7 kB / 0.5667 GB, free: 14.31 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.153e-05/0.3909, allocations: 116.4 kB / 0.5668 GB, free: 14.19 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.714e-05/0.3909, allocations: 75.38 kB / 0.5669 GB, free: 14.11 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.915e-05/0.391, allocations: 41.64 kB / 0.567 GB, free: 14.07 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001681/0.3912, allocations: 322.8 kB / 0.5673 GB, free: 13.74 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001061/0.3913, allocations: 43.98 kB / 0.5673 GB, free: 13.7 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001281/0.3914, allocations: 75.34 kB / 0.5674 GB, free: 13.61 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002524/0.3917, allocations: 135.3 kB / 0.5675 GB, free: 13.47 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.232e-06/0.3917, allocations: 0 / 0.5675 GB, free: 13.47 MB / 414.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004151/0.3921, allocations: 210.1 kB / 0.5677 GB, free: 13.25 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.082e-05/0.3921, allocations: 8 kB / 0.5677 GB, free: 13.25 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/0.3921, allocations: 0 / 0.5677 GB, free: 13.25 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001893/0.3923, allocations: 36.84 kB / 0.5678 GB, free: 13.21 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001842/0.3925, allocations: 40.02 kB / 0.5678 GB, free: 13.17 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001737/0.3942, allocations: 1.629 MB / 0.5694 GB, free: 11.43 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.617e-05/0.3943, allocations: 11.97 kB / 0.5694 GB, free: 11.41 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.569e-05/0.3943, allocations: 4 kB / 0.5694 GB, free: 11.41 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.0001353/0.3945, allocations: 125.8 kB / 0.5695 GB, free: 11.28 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.189e-05/0.3945, allocations: 11.91 kB / 0.5695 GB, free: 11.27 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.051e-05/0.3946, allocations: 25.05 kB / 0.5696 GB, free: 11.24 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.4e-06/0.3946, allocations: 4 kB / 0.5696 GB, free: 11.24 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.3946, allocations: 0 / 0.5696 GB, free: 11.24 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.3946, allocations: 0 / 0.5696 GB, free: 11.24 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000838/0.3954, allocations: 0.5013 MB / 0.57 GB, free: 10.68 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.65e-06/0.3954, allocations: 4 kB / 0.57 GB, free: 10.68 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000172/0.3956, allocations: 39.91 kB / 0.5701 GB, free: 10.64 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001226/0.3957, allocations: 28.84 kB / 0.5701 GB, free: 10.61 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.508e-05/0.3957, allocations: 4 kB / 0.5701 GB, free: 10.61 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001267/0.397, allocations: 1.37 MB / 0.5715 GB, free: 9.121 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.397, allocations: 4.031 kB / 0.5715 GB, free: 9.117 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005799/0.3976, allocations: 351.5 kB / 0.5718 GB, free: 8.754 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.698e-05/0.3976, allocations: 11.94 kB / 0.5718 GB, free: 8.742 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.392e-05/0.3976, allocations: 7.984 kB / 0.5718 GB, free: 8.734 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001023/0.3977, allocations: 11.94 kB / 0.5718 GB, free: 8.723 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.052e-05/0.3978, allocations: 19.91 kB / 0.5718 GB, free: 8.703 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.919e-06/0.3978, allocations: 8.125 kB / 0.5719 GB, free: 8.695 MB / 414.1 MB Notification: Performance of sorting global known variables: time 9.302e-05/0.3979, allocations: 107.3 kB / 0.572 GB, free: 8.59 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3979, allocations: 0 / 0.572 GB, free: 8.59 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003604/0.3982, allocations: 40 kB / 0.572 GB, free: 8.551 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.0008709/0.3991, allocations: 0.8804 MB / 0.5729 GB, free: 7.641 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005969/0.3997, allocations: 254.9 kB / 0.5731 GB, free: 7.379 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.3997, allocations: 3.938 kB / 0.5731 GB, free: 7.375 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002834/0.4, allocations: 190.5 kB / 0.5733 GB, free: 7.176 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003664/0.4004, allocations: 16 kB / 0.5733 GB, free: 7.16 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002782/0.4031, allocations: 2.065 MB / 0.5753 GB, free: 4.988 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001493/0.4033, allocations: 111.7 kB / 0.5754 GB, free: 4.855 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.058e-05/0.4034, allocations: 9.422 kB / 0.5754 GB, free: 4.844 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.088e-05/0.4034, allocations: 43.42 kB / 0.5755 GB, free: 4.801 MB / 414.1 MB Notification: Performance of SimCode: time 8.61e-07/0.4034, allocations: 0 / 0.5755 GB, free: 4.801 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02875/0.4322, allocations: 3.706 MB / 0.5791 GB, free: 1.227 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.49/12.92, allocations: 10.8 kB / 0.5791 GB, free: 1.219 MB / 414.1 MB " [Timeout remaining time 647] (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: 16.17954193300102]