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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001097/0.001096, allocations: 104.1 kB / 17.64 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001155/0.001155, allocations: 192 kB / 18.55 MB, free: 4.566 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.34/1.34, allocations: 222.9 MB / 242.3 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.198/0.198, allocations: 44.19 MB / 336.6 MB, free: 2.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00142/0.00142, allocations: 60.56 kB / 408.5 MB, free: 27.15 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09169/0.09313, allocations: 60.82 MB / 469.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003328/0.09649, allocations: 1.902 MB / 471.3 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008547/0.09738, allocations: 0.4987 MB / 471.8 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001095/0.09751, allocations: 3.938 kB / 471.8 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001199/0.09766, allocations: 23.8 kB / 471.8 MB, free: 11.85 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.78e-05/0.09777, allocations: 39.62 kB / 471.8 MB, free: 11.81 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000168/0.09794, allocations: 27.97 kB / 471.8 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001747/0.09813, allocations: 159.3 kB / 472 MB, free: 11.63 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001437/0.09828, allocations: 49.66 kB / 472 MB, free: 11.57 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001117/0.0984, allocations: 71.72 kB / 472.1 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001029/0.09851, allocations: 59.75 kB / 472.2 MB, free: 11.45 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.615e-05/0.09855, allocations: 16 kB / 472.2 MB, free: 11.43 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.535e-05/0.09858, allocations: 12 kB / 472.2 MB, free: 11.42 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.117e-05/0.09861, allocations: 27.86 kB / 472.2 MB, free: 11.39 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.088e-05/0.09869, allocations: 67.67 kB / 472.3 MB, free: 11.32 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001738/0.09887, allocations: 155.6 kB / 472.4 MB, free: 11.17 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.09888, allocations: 0 / 472.4 MB, free: 11.17 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.09889, allocations: 0 / 472.4 MB, free: 11.17 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.611e-06/0.0989, allocations: 0 / 472.4 MB, free: 11.17 MB / 350.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.0005227/0.09942, allocations: 431 kB / 472.9 MB, free: 10.7 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.902e-05/0.09947, allocations: 12.03 kB / 472.9 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.426e-05/0.09952, allocations: 46.73 kB / 472.9 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.88e-05/0.09957, allocations: 16.75 kB / 472.9 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001917/0.09977, allocations: 200.1 kB / 473.1 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.376e-05/0.09979, allocations: 8.375 kB / 473.1 MB, free: 10.38 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.384e-05/0.09983, allocations: 24.28 kB / 473.2 MB, free: 10.36 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002551/0.1001, allocations: 125.6 kB / 473.3 MB, free: 10.23 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.367e-05/0.1001, allocations: 0 / 473.3 MB, free: 10.23 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.607e-05/0.1001, allocations: 8 kB / 473.3 MB, free: 10.22 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.336e-06/0.1001, allocations: 0 / 473.3 MB, free: 10.22 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001774/0.1003, allocations: 83.94 kB / 473.4 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006464/0.101, allocations: 480.1 kB / 473.9 MB, free: 9.617 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002054/0.1012, allocations: 126.4 kB / 474 MB, free: 9.484 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001044/0.1013, allocations: 60.78 kB / 474 MB, free: 9.422 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.66e-05/0.1013, allocations: 0 / 474 MB, free: 9.422 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.634e-05/0.1014, allocations: 34.81 kB / 474.1 MB, free: 9.379 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.062e-06/0.1014, allocations: 0 / 474.1 MB, free: 9.379 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.001388/0.1028, allocations: 0.8052 MB / 474.9 MB, free: 8.48 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.309e-05/0.1028, allocations: 55.41 kB / 474.9 MB, free: 8.414 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001117/0.1029, allocations: 136.7 kB / 475.1 MB, free: 8.273 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.828e-05/0.103, allocations: 29.7 kB / 475.1 MB, free: 8.238 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.05e-05/0.103, allocations: 116.3 kB / 475.2 MB, free: 8.121 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.793e-05/0.1031, allocations: 66.94 kB / 475.3 MB, free: 8.055 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.822e-05/0.1032, allocations: 37.7 kB / 475.3 MB, free: 8.012 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001035/0.1033, allocations: 322.8 kB / 475.6 MB, free: 7.688 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.895e-05/0.1034, allocations: 47.97 kB / 475.7 MB, free: 7.641 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000114/0.1035, allocations: 83.28 kB / 475.8 MB, free: 7.547 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002078/0.1037, allocations: 131.4 kB / 475.9 MB, free: 7.406 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.233e-06/0.1037, allocations: 0 / 475.9 MB, free: 7.406 MB / 350.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003674/0.1041, allocations: 202.3 kB / 476.1 MB, free: 7.199 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.666e-05/0.1041, allocations: 7.938 kB / 476.1 MB, free: 7.191 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.543e-06/0.1041, allocations: 8.016 kB / 476.1 MB, free: 7.184 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001634/0.1043, allocations: 48.89 kB / 476.1 MB, free: 7.133 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001669/0.1045, allocations: 27.98 kB / 476.2 MB, free: 7.105 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001364/0.1059, allocations: 1.736 MB / 477.9 MB, free: 5.234 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.846e-05/0.106, allocations: 11.95 kB / 477.9 MB, free: 5.223 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.384e-05/0.106, allocations: 8 kB / 477.9 MB, free: 5.215 MB / 350.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 9.667e-05/0.1061, allocations: 129.9 kB / 478 MB, free: 5.078 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.579e-05/0.1061, allocations: 15.81 kB / 478.1 MB, free: 5.062 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.474e-05/0.1062, allocations: 13.19 kB / 478.1 MB, free: 5.051 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.378e-06/0.1062, allocations: 7.938 kB / 478.1 MB, free: 5.043 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.387e-06/0.1062, allocations: 0 / 478.1 MB, free: 5.043 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.558e-06/0.1062, allocations: 3.984 kB / 478.1 MB, free: 5.039 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006968/0.1069, allocations: 0.5544 MB / 478.6 MB, free: 4.422 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.235e-06/0.1069, allocations: 0 / 478.6 MB, free: 4.422 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001671/0.1071, allocations: 40.11 kB / 478.7 MB, free: 4.383 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001052/0.1072, allocations: 40.81 kB / 478.7 MB, free: 4.34 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.368e-05/0.1072, allocations: 7.984 kB / 478.7 MB, free: 4.332 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001012/0.1082, allocations: 1.473 MB / 480.2 MB, free: 2.719 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.472e-06/0.1082, allocations: 0 / 480.2 MB, free: 2.719 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004719/0.1087, allocations: 347.3 kB / 480.5 MB, free: 2.359 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.487e-05/0.1088, allocations: 93.09 kB / 480.6 MB, free: 2.25 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.183e-05/0.1088, allocations: 8 kB / 480.6 MB, free: 2.242 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.475e-05/0.1089, allocations: 4 kB / 480.6 MB, free: 2.238 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.429e-05/0.109, allocations: 15.92 kB / 480.7 MB, free: 2.223 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.005e-05/0.109, allocations: 4 kB / 480.7 MB, free: 2.219 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.919e-05/0.1091, allocations: 113.8 kB / 480.8 MB, free: 2.109 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1091, allocations: 0 / 480.8 MB, free: 2.109 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003215/0.1094, allocations: 40 kB / 480.8 MB, free: 2.07 MB / 350.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.000701/0.1101, allocations: 0.8715 MB / 481.7 MB, free: 1.164 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004798/0.1106, allocations: 270.5 kB / 482 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.1106, allocations: 4 kB / 482 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002365/0.1109, allocations: 190.6 kB / 482.1 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003737/0.1112, allocations: 22.39 kB / 482.2 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002409/0.1137, allocations: 2.05 MB / 484.2 MB, free: 14.5 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002546/0.1139, allocations: 0.7166 MB / 484.9 MB, free: 13.76 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.922e-05/0.114, allocations: 9.422 kB / 484.9 MB, free: 13.75 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.378e-05/0.1141, allocations: 39.42 kB / 485 MB, free: 13.71 MB / 366.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1141, allocations: 0 / 485 MB, free: 13.71 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0306/0.1447, allocations: 3.333 MB / 488.3 MB, free: 10.5 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.384/9.529, allocations: 7.672 kB / 488.3 MB, free: 10.5 MB / 366.1 MB (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 --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) 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) "" Variables in the reference:time,J2.phi,J2.w Variables in the result:J1.J,J1.a,J1.flange_a.phi,J1.flange_a.tau,J1.flange_b.phi,J1.flange_b.tau,J1.phi,J1.stateSelect,J1.w,J2.J,J2.a,J2.flange_a.phi,J2.flange_a.tau,J2.flange_b.phi,J2.flange_b.tau,J2.phi,J2.stateSelect,J2.w,der(J1.phi),der(J1.w),der(J2.phi),der(J2.w),der(der(gear.phi_a)),der(der(gear.phi_b)),der(gear.phi_a),der(gear.phi_b),fixed.flange.phi,fixed.flange.tau,fixed.phi0,gear.flange_a.phi,gear.flange_a.tau,gear.flange_b.phi,gear.flange_b.tau,gear.phi_a,gear.phi_b,gear.ratio,gear.support.phi,gear.support.tau,gear.useSupport,sine.amplitude,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,time,torque.flange.phi,torque.flange.tau,torque.support.phi,torque.support.tau,torque.tau,torque.useSupport