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.00138/0.00138, allocations: 114 kB / 20.43 MB, free: 1.457 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.00154/0.00154, allocations: 212.6 kB / 23.74 MB, free: 4.672 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.503/1.503, allocations: 230.5 MB / 257.4 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.2497/0.2497, allocations: 46.92 MB / 360.8 MB, free: 4.156 MB / 286.1 MB " [Timeout remaining time 179] 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.002408/0.002408, allocations: 79.88 kB / 0.4962 GB, free: 7.742 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3329/0.3353, allocations: 66.09 MB / 0.5607 GB, free: 4.262 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003643/0.339, allocations: 1.924 MB / 0.5626 GB, free: 2.328 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001204/0.3402, allocations: 0.5737 MB / 0.5632 GB, free: 1.75 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000112/0.3403, allocations: 4 kB / 0.5632 GB, free: 1.746 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001387/0.3404, allocations: 23.73 kB / 0.5632 GB, free: 1.723 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001069/0.3405, allocations: 43.62 kB / 0.5632 GB, free: 1.68 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002415/0.3408, allocations: 51.88 kB / 0.5633 GB, free: 1.629 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002085/0.341, allocations: 151.2 kB / 0.5634 GB, free: 1.48 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001718/0.3411, allocations: 55.03 kB / 0.5635 GB, free: 1.426 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001767/0.3413, allocations: 59.84 kB / 0.5635 GB, free: 1.367 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001317/0.3415, allocations: 71.69 kB / 0.5636 GB, free: 1.297 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.503e-05/0.3415, allocations: 15.94 kB / 0.5636 GB, free: 1.281 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.479e-05/0.3415, allocations: 12 kB / 0.5636 GB, free: 1.27 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.263e-05/0.3416, allocations: 31.86 kB / 0.5637 GB, free: 1.238 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 7.874e-05/0.3416, allocations: 67.67 kB / 0.5637 GB, free: 1.172 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002738/0.3419, allocations: 159.3 kB / 0.5639 GB, free: 1.016 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.3419, allocations: 0 / 0.5639 GB, free: 1.016 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.3419, allocations: 0 / 0.5639 GB, free: 1.016 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.132e-06/0.3419, allocations: 0 / 0.5639 GB, free: 1.016 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.0005796/0.3425, allocations: 365.7 kB / 0.5642 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.103e-05/0.3426, allocations: 12.03 kB / 0.5642 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.635e-05/0.3426, allocations: 46.73 kB / 0.5643 GB, free: 0.5625 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001373/0.3428, allocations: 24.83 kB / 0.5643 GB, free: 0.5391 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002769/0.343, allocations: 146.3 kB / 0.5644 GB, free: 380 kB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.091e-05/0.343, allocations: 12.38 kB / 0.5645 GB, free: 368 kB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.381e-05/0.3431, allocations: 16.33 kB / 0.5645 GB, free: 352 kB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003407/0.3434, allocations: 129.5 kB / 0.5646 GB, free: 216 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.284e-05/0.3435, allocations: 11.98 kB / 0.5646 GB, free: 204 kB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.628e-05/0.3435, allocations: 4 kB / 0.5646 GB, free: 200 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.193e-06/0.3435, allocations: 4 kB / 0.5646 GB, free: 196 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000194/0.3437, allocations: 83.94 kB / 0.5647 GB, free: 112 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007424/0.3444, allocations: 427.5 kB / 0.5651 GB, free: 15.65 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002486/0.3447, allocations: 118.4 kB / 0.5652 GB, free: 15.52 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001127/0.3448, allocations: 48.84 kB / 0.5653 GB, free: 15.47 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.745e-05/0.3448, allocations: 4 kB / 0.5653 GB, free: 15.47 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.992e-05/0.3448, allocations: 30.56 kB / 0.5653 GB, free: 15.43 MB / 414.1 MB Notification: Performance of pre-optimization done (n=13): time 1.533e-06/0.3448, allocations: 0 / 0.5653 GB, free: 15.43 MB / 414.1 MB Notification: Performance of matching and sorting (n=19): time 0.001459/0.3463, allocations: 0.6752 MB / 0.566 GB, free: 14.7 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.622e-05/0.3463, allocations: 55.39 kB / 0.566 GB, free: 14.64 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001384/0.3465, allocations: 141.6 kB / 0.5661 GB, free: 14.49 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.52e-05/0.3465, allocations: 29.7 kB / 0.5662 GB, free: 14.45 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.387e-05/0.3466, allocations: 120.3 kB / 0.5663 GB, free: 14.33 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.835e-05/0.3466, allocations: 71.38 kB / 0.5664 GB, free: 14.26 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.954e-05/0.3467, allocations: 33.72 kB / 0.5664 GB, free: 14.22 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001497/0.3468, allocations: 322.8 kB / 0.5667 GB, free: 13.89 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001088/0.347, allocations: 51.97 kB / 0.5667 GB, free: 13.84 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001268/0.3471, allocations: 75.34 kB / 0.5668 GB, free: 13.76 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002332/0.3473, allocations: 139.3 kB / 0.5669 GB, free: 13.61 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.092e-06/0.3473, allocations: 0 / 0.5669 GB, free: 13.61 MB / 414.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003957/0.3477, allocations: 206.2 kB / 0.5671 GB, free: 13.4 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.304e-05/0.3477, allocations: 13.97 kB / 0.5672 GB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.3477, allocations: 0 / 0.5672 GB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001667/0.3479, allocations: 44.86 kB / 0.5672 GB, free: 13.34 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001742/0.3481, allocations: 39.92 kB / 0.5672 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001646/0.3497, allocations: 1.633 MB / 0.5688 GB, free: 11.55 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.163e-05/0.3498, allocations: 4.031 kB / 0.5688 GB, free: 11.55 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.787e-05/0.3498, allocations: 11.98 kB / 0.5688 GB, free: 11.54 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.0001228/0.3499, allocations: 121.8 kB / 0.569 GB, free: 11.41 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.786e-05/0.35, allocations: 16.02 kB / 0.569 GB, free: 11.39 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.082e-05/0.35, allocations: 21.06 kB / 0.569 GB, free: 11.38 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.315e-05/0.35, allocations: 7.938 kB / 0.569 GB, free: 11.37 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.476e-06/0.35, allocations: 0 / 0.569 GB, free: 11.37 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.35, allocations: 3.984 kB / 0.569 GB, free: 11.36 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008225/0.3509, allocations: 0.5223 MB / 0.5695 GB, free: 10.79 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.3509, allocations: 0 / 0.5695 GB, free: 10.79 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001736/0.351, allocations: 35.97 kB / 0.5696 GB, free: 10.75 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001095/0.3512, allocations: 28.84 kB / 0.5696 GB, free: 10.72 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.354e-05/0.3512, allocations: 4 kB / 0.5696 GB, free: 10.71 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001305/0.3525, allocations: 1.381 MB / 0.5709 GB, free: 9.219 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.3525, allocations: 0 / 0.5709 GB, free: 9.219 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005379/0.353, allocations: 351.6 kB / 0.5713 GB, free: 8.855 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.657e-05/0.353, allocations: 11.94 kB / 0.5713 GB, free: 8.844 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.982e-05/0.3531, allocations: 4 kB / 0.5713 GB, free: 8.84 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001005/0.3532, allocations: 8 kB / 0.5713 GB, free: 8.832 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.667e-05/0.3532, allocations: 19.91 kB / 0.5713 GB, free: 8.812 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.648e-06/0.3532, allocations: 4 kB / 0.5713 GB, free: 8.809 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001052/0.3533, allocations: 115.3 kB / 0.5714 GB, free: 8.695 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3533, allocations: 4 kB / 0.5714 GB, free: 8.691 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003586/0.3537, allocations: 36 kB / 0.5715 GB, free: 8.656 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.0008898/0.3546, allocations: 0.8804 MB / 0.5723 GB, free: 7.746 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005454/0.3551, allocations: 250.8 kB / 0.5726 GB, free: 7.488 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.3551, allocations: 3.938 kB / 0.5726 GB, free: 7.484 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002777/0.3554, allocations: 193 kB / 0.5728 GB, free: 7.285 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003569/0.3558, allocations: 28.44 kB / 0.5728 GB, free: 7.258 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002757/0.3585, allocations: 2.062 MB / 0.5748 GB, free: 5.086 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004014/0.3589, allocations: 0.7244 MB / 0.5755 GB, free: 4.332 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.989e-05/0.359, allocations: 5.438 kB / 0.5755 GB, free: 4.324 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.018e-05/0.3591, allocations: 43.42 kB / 0.5755 GB, free: 4.281 MB / 414.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3591, allocations: 0 / 0.5755 GB, free: 4.281 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03578/0.3948, allocations: 3.608 MB / 0.5791 GB, free: 0.7852 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.36/12.75, allocations: 4.062 kB / 0.5791 GB, free: 0.7812 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: 15.8768794471398]