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.00138/0.00138, 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.001484/0.001484, allocations: 208.6 kB / 23.72 MB, free: 4.391 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.468/1.468, allocations: 230.6 MB / 257.5 MB, free: 7.801 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.2396/0.2396, allocations: 44.94 MB / 358.8 MB, free: 6.047 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",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.002729/0.002729, allocations: 63.91 kB / 0.493 GB, free: 10.54 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.376/0.3787, allocations: 65.47 MB / 0.5569 GB, free: 7.332 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003538/0.3822, allocations: 1.862 MB / 0.5588 GB, free: 5.645 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001125/0.3833, allocations: 0.5387 MB / 0.5593 GB, free: 5.102 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.743e-05/0.3834, allocations: 4 kB / 0.5593 GB, free: 5.098 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001409/0.3836, allocations: 23.73 kB / 0.5593 GB, free: 5.074 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001056/0.3837, allocations: 43.62 kB / 0.5594 GB, free: 5.031 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000241/0.3839, allocations: 47.89 kB / 0.5594 GB, free: 4.984 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002094/0.3841, allocations: 151.2 kB / 0.5596 GB, free: 4.836 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001641/0.3843, allocations: 47.66 kB / 0.5596 GB, free: 4.785 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001647/0.3845, allocations: 63.83 kB / 0.5597 GB, free: 4.723 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001167/0.3846, allocations: 63.64 kB / 0.5597 GB, free: 4.66 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.419e-05/0.3846, allocations: 12 kB / 0.5597 GB, free: 4.648 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.682e-05/0.3847, allocations: 12 kB / 0.5597 GB, free: 4.637 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.902e-05/0.3847, allocations: 27.86 kB / 0.5598 GB, free: 4.609 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.907e-05/0.3848, allocations: 55.8 kB / 0.5598 GB, free: 4.555 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002525/0.385, allocations: 163.3 kB / 0.56 GB, free: 4.395 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.419e-06/0.385, allocations: 0 / 0.56 GB, free: 4.395 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.385, allocations: 0 / 0.56 GB, free: 4.395 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.16e-06/0.385, allocations: 0 / 0.56 GB, free: 4.395 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.0006131/0.3857, allocations: 365.7 kB / 0.5603 GB, free: 4.008 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.587e-05/0.3857, allocations: 8.031 kB / 0.5603 GB, free: 4 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.696e-05/0.3858, allocations: 46.73 kB / 0.5604 GB, free: 3.945 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001488/0.3859, allocations: 32.77 kB / 0.5604 GB, free: 3.914 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002654/0.3862, allocations: 150.3 kB / 0.5606 GB, free: 3.742 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.503e-05/0.3862, allocations: 8.375 kB / 0.5606 GB, free: 3.734 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.651e-05/0.3862, allocations: 20.33 kB / 0.5606 GB, free: 3.715 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002744/0.3865, allocations: 126 kB / 0.5607 GB, free: 3.586 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.39e-05/0.3865, allocations: 0 / 0.5607 GB, free: 3.586 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.901e-05/0.3865, allocations: 12 kB / 0.5607 GB, free: 3.574 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.869e-06/0.3865, allocations: 0 / 0.5607 GB, free: 3.574 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001971/0.3867, allocations: 87.92 kB / 0.5608 GB, free: 3.488 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007232/0.3875, allocations: 407.5 kB / 0.5612 GB, free: 3.047 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002478/0.3877, allocations: 110.4 kB / 0.5613 GB, free: 2.93 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001186/0.3878, allocations: 56.83 kB / 0.5613 GB, free: 2.871 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.04e-05/0.3878, allocations: 3.984 kB / 0.5613 GB, free: 2.867 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.18e-05/0.3879, allocations: 38.56 kB / 0.5614 GB, free: 2.82 MB / 398.1 MB Notification: Performance of pre-optimization done (n=13): time 1.312e-06/0.3879, allocations: 4 kB / 0.5614 GB, free: 2.816 MB / 398.1 MB Notification: Performance of matching and sorting (n=19): time 0.001509/0.3894, allocations: 0.6552 MB / 0.562 GB, free: 2.105 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.419e-05/0.3894, allocations: 55.41 kB / 0.5621 GB, free: 2.039 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00015/0.3896, allocations: 147.5 kB / 0.5622 GB, free: 1.887 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.097e-05/0.3896, allocations: 25.7 kB / 0.5622 GB, free: 1.855 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.67e-05/0.3897, allocations: 120.4 kB / 0.5624 GB, free: 1.73 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.869e-05/0.3898, allocations: 67.39 kB / 0.5624 GB, free: 1.664 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.433e-05/0.3898, allocations: 37.7 kB / 0.5625 GB, free: 1.621 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001745/0.39, allocations: 322.8 kB / 0.5628 GB, free: 1.297 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001002/0.3901, allocations: 43.98 kB / 0.5628 GB, free: 1.254 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001308/0.3902, allocations: 82.16 kB / 0.5629 GB, free: 1.164 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002391/0.3905, allocations: 135.3 kB / 0.563 GB, free: 1.02 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.172e-06/0.3905, allocations: 0 / 0.563 GB, free: 1.02 MB / 398.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003893/0.3909, allocations: 202.3 kB / 0.5632 GB, free: 0.8125 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.181e-05/0.3909, allocations: 11.92 kB / 0.5632 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.3909, allocations: 0 / 0.5632 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001723/0.3911, allocations: 44.84 kB / 0.5633 GB, free: 0.7539 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001744/0.3912, allocations: 39.91 kB / 0.5633 GB, free: 0.7148 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001844/0.3931, allocations: 1.633 MB / 0.5649 GB, free: 14.97 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.971e-05/0.3932, allocations: 8.031 kB / 0.5649 GB, free: 14.96 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.29e-05/0.3932, allocations: 4 kB / 0.5649 GB, free: 14.96 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.0001465/0.3933, allocations: 133.8 kB / 0.565 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.103e-05/0.3934, allocations: 19.84 kB / 0.5651 GB, free: 14.8 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.095e-05/0.3934, allocations: 13.12 kB / 0.5651 GB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.658e-05/0.3934, allocations: 11.97 kB / 0.5651 GB, free: 14.77 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.244e-06/0.3934, allocations: 3.984 kB / 0.5651 GB, free: 14.77 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.3934, allocations: 4.062 kB / 0.5651 GB, free: 14.77 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008461/0.3943, allocations: 0.499 MB / 0.5656 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/0.3943, allocations: 0 / 0.5656 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001694/0.3945, allocations: 39.97 kB / 0.5656 GB, free: 14.17 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001132/0.3946, allocations: 28.84 kB / 0.5656 GB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.428e-05/0.3946, allocations: 4 kB / 0.5656 GB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001427/0.396, allocations: 1.37 MB / 0.567 GB, free: 12.65 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.396, allocations: 0 / 0.567 GB, free: 12.65 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005483/0.3966, allocations: 348.2 kB / 0.5673 GB, free: 12.29 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.666e-05/0.3966, allocations: 15.94 kB / 0.5673 GB, free: 12.28 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.139e-05/0.3966, allocations: 8 kB / 0.5673 GB, free: 12.27 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.133e-05/0.3967, allocations: 3.984 kB / 0.5673 GB, free: 12.27 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.182e-05/0.3968, allocations: 28.03 kB / 0.5674 GB, free: 12.24 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.258e-06/0.3968, allocations: 4 kB / 0.5674 GB, free: 12.23 MB / 414.1 MB Notification: Performance of sorting global known variables: time 9.85e-05/0.3969, allocations: 103.3 kB / 0.5675 GB, free: 12.13 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3969, allocations: 0 / 0.5675 GB, free: 12.13 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000334/0.3972, allocations: 40 kB / 0.5675 GB, free: 12.09 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.0009112/0.3981, allocations: 0.8841 MB / 0.5684 GB, free: 11.18 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005442/0.3987, allocations: 250.9 kB / 0.5686 GB, free: 10.92 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.3987, allocations: 0 / 0.5686 GB, free: 10.92 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002901/0.3989, allocations: 192.9 kB / 0.5688 GB, free: 10.72 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003373/0.3993, allocations: 20.22 kB / 0.5688 GB, free: 10.7 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002827/0.4021, allocations: 2.079 MB / 0.5708 GB, free: 8.516 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001473/0.4023, allocations: 111.7 kB / 0.571 GB, free: 8.383 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.028e-05/0.4023, allocations: 13.36 kB / 0.571 GB, free: 8.367 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.172e-05/0.4024, allocations: 43.42 kB / 0.571 GB, free: 8.324 MB / 414.1 MB Notification: Performance of SimCode: time 6.11e-07/0.4024, allocations: 0 / 0.571 GB, free: 8.324 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03717/0.4396, allocations: 4.003 MB / 0.5749 GB, free: 4.473 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.59/12.03, allocations: 0 / 0.5749 GB, free: 4.473 MB / 414.1 MB " [Timeout remaining time 648] (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: 15.005100721959025]