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.001347/0.001347, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.00162/0.00162, allocations: 209.7 kB / 23.73 MB, free: 4.387 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.453/1.453, allocations: 230.6 MB / 257.5 MB, free: 7.785 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.2332/0.2332, allocations: 46.97 MB / 360.9 MB, free: 4.039 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002273/0.002273, allocations: 71.89 kB / 0.4961 GB, free: 7.734 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3338/0.3361, allocations: 66.02 MB / 0.5606 GB, free: 4.238 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003311/0.3394, allocations: 1.868 MB / 0.5624 GB, free: 2.359 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001092/0.3405, allocations: 0.5309 MB / 0.5629 GB, free: 1.824 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.535e-05/0.3406, allocations: 7.938 kB / 0.5629 GB, free: 1.816 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001269/0.3407, allocations: 19.8 kB / 0.5629 GB, free: 1.797 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001093/0.3408, allocations: 43.62 kB / 0.563 GB, free: 1.754 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002282/0.341, allocations: 47.89 kB / 0.563 GB, free: 1.707 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002106/0.3412, allocations: 147.3 kB / 0.5632 GB, free: 1.562 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001526/0.3414, allocations: 51.64 kB / 0.5632 GB, free: 1.508 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001848/0.3416, allocations: 67.72 kB / 0.5633 GB, free: 1.441 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001088/0.3417, allocations: 59.69 kB / 0.5633 GB, free: 1.383 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.656e-05/0.3417, allocations: 12 kB / 0.5634 GB, free: 1.371 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.459e-05/0.3418, allocations: 12 kB / 0.5634 GB, free: 1.359 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.786e-05/0.3418, allocations: 23.92 kB / 0.5634 GB, free: 1.336 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 7.65e-05/0.3419, allocations: 59.73 kB / 0.5634 GB, free: 1.277 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002315/0.3421, allocations: 155.3 kB / 0.5636 GB, free: 1.125 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.898e-06/0.3421, allocations: 4 kB / 0.5636 GB, free: 1.121 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.3421, allocations: 0 / 0.5636 GB, free: 1.121 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.388e-06/0.3421, allocations: 0 / 0.5636 GB, free: 1.121 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.0005802/0.3427, allocations: 369.7 kB / 0.5639 GB, free: 0.7305 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.765e-05/0.3427, allocations: 8.031 kB / 0.564 GB, free: 0.7227 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.065e-05/0.3428, allocations: 46.73 kB / 0.564 GB, free: 0.668 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001527/0.3429, allocations: 32.72 kB / 0.564 GB, free: 0.6367 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002701/0.3432, allocations: 146.3 kB / 0.5642 GB, free: 480 kB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.726e-05/0.3432, allocations: 12.38 kB / 0.5642 GB, free: 468 kB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.024e-05/0.3433, allocations: 24.31 kB / 0.5642 GB, free: 444 kB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002718/0.3435, allocations: 122.1 kB / 0.5643 GB, free: 316 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.287e-05/0.3436, allocations: 0 / 0.5643 GB, free: 316 kB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.643e-05/0.3436, allocations: 8 kB / 0.5643 GB, free: 308 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.915e-06/0.3436, allocations: 0 / 0.5643 GB, free: 308 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001891/0.3438, allocations: 83.94 kB / 0.5644 GB, free: 224 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007308/0.3445, allocations: 415.6 kB / 0.5648 GB, free: 15.77 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002445/0.3447, allocations: 114.5 kB / 0.5649 GB, free: 15.64 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00012/0.3449, allocations: 52.83 kB / 0.565 GB, free: 15.59 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.874e-05/0.3449, allocations: 0 / 0.565 GB, free: 15.59 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.394e-05/0.3449, allocations: 38.5 kB / 0.565 GB, free: 15.54 MB / 414.1 MB Notification: Performance of pre-optimization done (n=13): time 1.002e-06/0.3449, allocations: 0 / 0.565 GB, free: 15.54 MB / 414.1 MB Notification: Performance of matching and sorting (n=19): time 0.001493/0.3464, allocations: 0.6655 MB / 0.5657 GB, free: 14.82 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.032e-05/0.3465, allocations: 55.41 kB / 0.5657 GB, free: 14.76 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000138/0.3466, allocations: 145.6 kB / 0.5658 GB, free: 14.61 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.947e-05/0.3466, allocations: 25.7 kB / 0.5659 GB, free: 14.57 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.785e-05/0.3467, allocations: 112.4 kB / 0.566 GB, free: 14.46 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.996e-05/0.3468, allocations: 71.38 kB / 0.566 GB, free: 14.39 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.393e-05/0.3468, allocations: 37.7 kB / 0.5661 GB, free: 14.34 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001584/0.347, allocations: 322.8 kB / 0.5664 GB, free: 14.02 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001039/0.3471, allocations: 43.98 kB / 0.5664 GB, free: 13.98 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001293/0.3472, allocations: 81.91 kB / 0.5665 GB, free: 13.89 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000238/0.3475, allocations: 139.3 kB / 0.5666 GB, free: 13.74 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.143e-06/0.3475, allocations: 7.766 kB / 0.5666 GB, free: 13.73 MB / 414.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004032/0.3479, allocations: 198.3 kB / 0.5668 GB, free: 13.53 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.999e-05/0.3479, allocations: 7.938 kB / 0.5668 GB, free: 13.52 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.023e-05/0.3479, allocations: 7.922 kB / 0.5669 GB, free: 13.52 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001695/0.3481, allocations: 44.83 kB / 0.5669 GB, free: 13.47 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001709/0.3482, allocations: 36.02 kB / 0.5669 GB, free: 13.43 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001692/0.3499, allocations: 1.621 MB / 0.5685 GB, free: 11.7 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.857e-05/0.35, allocations: 12.02 kB / 0.5685 GB, free: 11.69 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.328e-05/0.35, allocations: 4 kB / 0.5685 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.000139/0.3502, allocations: 137.8 kB / 0.5687 GB, free: 11.54 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.844e-05/0.3502, allocations: 15.91 kB / 0.5687 GB, free: 11.52 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.564e-05/0.3502, allocations: 13.12 kB / 0.5687 GB, free: 11.51 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.921e-06/0.3503, allocations: 8.188 kB / 0.5687 GB, free: 11.5 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.3503, allocations: 0 / 0.5687 GB, free: 11.5 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.513e-05/0.3503, allocations: 7.984 kB / 0.5687 GB, free: 11.5 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008339/0.3511, allocations: 0.5029 MB / 0.5692 GB, free: 10.94 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.3511, allocations: 3.984 kB / 0.5692 GB, free: 10.93 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001711/0.3513, allocations: 47.98 kB / 0.5692 GB, free: 10.89 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001157/0.3514, allocations: 32.78 kB / 0.5693 GB, free: 10.85 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.383e-05/0.3514, allocations: 4 kB / 0.5693 GB, free: 10.85 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001279/0.3527, allocations: 1.358 MB / 0.5706 GB, free: 9.375 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.3527, allocations: 3.938 kB / 0.5706 GB, free: 9.371 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005604/0.3533, allocations: 353.8 kB / 0.5709 GB, free: 9.008 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.472e-05/0.3533, allocations: 11.94 kB / 0.571 GB, free: 8.996 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.771e-05/0.3533, allocations: 0 / 0.571 GB, free: 8.996 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.493e-05/0.3534, allocations: 11.94 kB / 0.571 GB, free: 8.984 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.795e-05/0.3534, allocations: 23.91 kB / 0.571 GB, free: 8.961 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.095e-06/0.3535, allocations: 0 / 0.571 GB, free: 8.961 MB / 414.1 MB Notification: Performance of sorting global known variables: time 9.316e-05/0.3535, allocations: 114 kB / 0.5711 GB, free: 8.852 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3535, allocations: 0 / 0.5711 GB, free: 8.852 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003445/0.3539, allocations: 40 kB / 0.5711 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.0008938/0.3548, allocations: 0.8819 MB / 0.572 GB, free: 7.898 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005363/0.3553, allocations: 246.8 kB / 0.5722 GB, free: 7.645 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.3553, allocations: 0 / 0.5722 GB, free: 7.645 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002974/0.3556, allocations: 190.7 kB / 0.5724 GB, free: 7.445 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003435/0.356, allocations: 23.98 kB / 0.5724 GB, free: 7.422 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002782/0.3587, allocations: 2.06 MB / 0.5745 GB, free: 5.254 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001274/0.3589, allocations: 119.6 kB / 0.5746 GB, free: 5.113 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.028e-05/0.3589, allocations: 13.36 kB / 0.5746 GB, free: 5.098 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.132e-05/0.359, allocations: 43.42 kB / 0.5746 GB, free: 5.055 MB / 414.1 MB Notification: Performance of SimCode: time 5.51e-07/0.359, allocations: 0 / 0.5746 GB, free: 5.055 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03548/0.3945, allocations: 4.008 MB / 0.5785 GB, free: 1.199 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.66/12.05, allocations: 7.938 kB / 0.5785 GB, free: 1.191 MB / 414.1 MB " [Timeout remaining time 648] (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: 14.988196349237114]