Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001053/0.001053, allocations: 200.2 kB / 16.1 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.249/1.249, allocations: 226.5 MB / 243.4 MB, free: 8.109 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007396/0.0007396, allocations: 100 kB / 295.5 MB, free: 6.871 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2943/0.2943, allocations: 44.82 MB / 392.3 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002576/0.0002577, allocations: 8 kB / 465.4 MB, free: 12.56 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3037/0.304, allocations: 62.97 MB / 0.516 GB, free: 37.04 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.001964/0.306, allocations: 1.587 MB / 0.5175 GB, free: 35.89 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007915/0.3069, allocations: 0.4999 MB / 0.518 GB, free: 35.53 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001455/0.307, allocations: 2.938 kB / 0.518 GB, free: 35.53 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001172/0.3072, allocations: 11.16 kB / 0.518 GB, free: 35.52 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 9.508e-05/0.3073, allocations: 35.67 kB / 0.518 GB, free: 35.5 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001983/0.3075, allocations: 28.22 kB / 0.5181 GB, free: 35.48 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001526/0.3076, allocations: 139.4 kB / 0.5182 GB, free: 35.41 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001527/0.3078, allocations: 54.06 kB / 0.5183 GB, free: 35.38 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001493/0.3079, allocations: 60.06 kB / 0.5183 GB, free: 35.35 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000124/0.3081, allocations: 53.73 kB / 0.5184 GB, free: 35.33 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.066e-05/0.3081, allocations: 5.812 kB / 0.5184 GB, free: 35.33 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.179e-05/0.3082, allocations: 8.656 kB / 0.5184 GB, free: 35.33 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 2.068e-05/0.3082, allocations: 25.17 kB / 0.5184 GB, free: 35.31 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 6.422e-05/0.3083, allocations: 87.58 kB / 0.5185 GB, free: 35.25 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001406/0.3084, allocations: 107 kB / 0.5186 GB, free: 35.22 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.451e-06/0.3084, allocations: 0 / 0.5186 GB, free: 35.22 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.863e-06/0.3084, allocations: 0 / 0.5186 GB, free: 35.22 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.328e-06/0.3084, allocations: 0 / 0.5186 GB, free: 35.22 MB / 378.7 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.0004024/0.3089, allocations: 413.9 kB / 0.519 GB, free: 34.82 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.857e-05/0.3089, allocations: 16.5 kB / 0.519 GB, free: 34.82 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.144e-05/0.3089, allocations: 46.05 kB / 0.519 GB, free: 34.77 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001377/0.3091, allocations: 23.06 kB / 0.5191 GB, free: 34.77 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001601/0.3093, allocations: 213.8 kB / 0.5193 GB, free: 34.54 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.343e-05/0.3093, allocations: 7.219 kB / 0.5193 GB, free: 34.54 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.012e-05/0.3093, allocations: 15.81 kB / 0.5193 GB, free: 34.54 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002349/0.3096, allocations: 131.7 kB / 0.5194 GB, free: 34.46 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.324e-05/0.3096, allocations: 3.938 kB / 0.5194 GB, free: 34.46 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.58e-05/0.3096, allocations: 10.94 kB / 0.5194 GB, free: 34.45 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.444e-06/0.3096, allocations: 2.906 kB / 0.5194 GB, free: 34.45 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001693/0.3098, allocations: 92.28 kB / 0.5195 GB, free: 34.42 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005647/0.3104, allocations: 471.2 kB / 0.52 GB, free: 34.06 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001843/0.3106, allocations: 119.2 kB / 0.5201 GB, free: 34 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.85e-05/0.3107, allocations: 56.83 kB / 0.5201 GB, free: 33.98 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.913e-05/0.3107, allocations: 10.89 kB / 0.5201 GB, free: 33.97 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.707e-05/0.3107, allocations: 34.56 kB / 0.5202 GB, free: 33.93 MB / 378.7 MB Notification: Performance of pre-optimization done (n=13): time 1.242e-06/0.3107, allocations: 0 / 0.5202 GB, free: 33.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=19): time 0.001184/0.3119, allocations: 0.8105 MB / 0.521 GB, free: 33.31 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.268e-05/0.3119, allocations: 58.03 kB / 0.521 GB, free: 33.25 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001219/0.3121, allocations: 144 kB / 0.5212 GB, free: 33.13 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.142e-05/0.3121, allocations: 25.7 kB / 0.5212 GB, free: 33.1 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.836e-05/0.3121, allocations: 121.3 kB / 0.5213 GB, free: 32.99 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.675e-05/0.3122, allocations: 70.59 kB / 0.5214 GB, free: 32.93 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.695e-06/0.3122, allocations: 4 kB / 0.5214 GB, free: 32.93 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.48e-05/0.3123, allocations: 320.6 kB / 0.5217 GB, free: 32.61 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.871e-05/0.3124, allocations: 48.91 kB / 0.5217 GB, free: 32.6 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001027/0.3125, allocations: 82.75 kB / 0.5218 GB, free: 32.54 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001889/0.3127, allocations: 129.4 kB / 0.5219 GB, free: 32.47 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.32e-07/0.3127, allocations: 0 / 0.5219 GB, free: 32.47 MB / 378.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003237/0.313, allocations: 217 kB / 0.5221 GB, free: 32.36 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.562e-05/0.313, allocations: 9.812 kB / 0.5221 GB, free: 32.36 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.313, allocations: 0 / 0.5221 GB, free: 32.36 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001515/0.3132, allocations: 39.56 kB / 0.5222 GB, free: 32.34 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001516/0.3133, allocations: 40.09 kB / 0.5222 GB, free: 32.33 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009867/0.3143, allocations: 1.555 MB / 0.5237 GB, free: 30.85 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.158e-05/0.3144, allocations: 14.25 kB / 0.5238 GB, free: 30.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.158e-05/0.3144, allocations: 9.719 kB / 0.5238 GB, free: 30.84 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.74e-05/0.3145, allocations: 130.5 kB / 0.5239 GB, free: 30.71 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.044e-05/0.3146, allocations: 14.72 kB / 0.5239 GB, free: 30.7 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.266e-05/0.3146, allocations: 16.66 kB / 0.5239 GB, free: 30.69 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.325e-06/0.3146, allocations: 3.062 kB / 0.5239 GB, free: 30.69 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.086e-06/0.3146, allocations: 48 / 0.5239 GB, free: 30.69 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.509e-06/0.3146, allocations: 4.234 kB / 0.5239 GB, free: 30.68 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000613/0.3152, allocations: 0.5597 MB / 0.5245 GB, free: 30.25 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.005e-06/0.3153, allocations: 6.688 kB / 0.5245 GB, free: 30.25 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001529/0.3154, allocations: 39.33 kB / 0.5245 GB, free: 30.24 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.719e-05/0.3155, allocations: 32.81 kB / 0.5246 GB, free: 30.23 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.373e-05/0.3155, allocations: 6.656 kB / 0.5246 GB, free: 30.22 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007203/0.3163, allocations: 1.366 MB / 0.5259 GB, free: 28.88 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.3163, allocations: 3.938 kB / 0.5259 GB, free: 28.87 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000403/0.3167, allocations: 360.2 kB / 0.5262 GB, free: 28.63 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.711e-05/0.3167, allocations: 83.64 kB / 0.5263 GB, free: 28.54 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.671e-05/0.3168, allocations: 2.531 kB / 0.5263 GB, free: 28.54 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.663e-05/0.3168, allocations: 6.812 kB / 0.5263 GB, free: 28.53 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.732e-05/0.3169, allocations: 18.34 kB / 0.5263 GB, free: 28.53 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.774e-06/0.3169, allocations: 2.281 kB / 0.5263 GB, free: 28.53 MB / 378.7 MB Notification: Performance of sorting global known variables: time 4.803e-05/0.317, allocations: 108.9 kB / 0.5265 GB, free: 28.45 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.317, allocations: 0 / 0.5265 GB, free: 28.45 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002855/0.3173, allocations: 43.09 kB / 0.5265 GB, free: 28.44 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005859/0.3179, allocations: 0.877 MB / 0.5273 GB, free: 27.67 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004048/0.3183, allocations: 262.2 kB / 0.5276 GB, free: 27.51 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.3183, allocations: 0 / 0.5276 GB, free: 27.51 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002115/0.3185, allocations: 199.2 kB / 0.5278 GB, free: 27.37 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003366/0.3188, allocations: 19.27 kB / 0.5278 GB, free: 27.36 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001372/0.3202, allocations: 1.119 MB / 0.5289 GB, free: 26.59 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001576/0.3204, allocations: 0.7265 MB / 0.5296 GB, free: 25.89 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.206e-05/0.3205, allocations: 45.5 kB / 0.5297 GB, free: 25.86 MB / 378.7 MB Notification: Performance of SimCode: time 2.51e-07/0.3205, allocations: 0 / 0.5297 GB, free: 25.86 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.097/3.418, allocations: 2.885 MB / 0.5325 GB, free: 25.62 MB / 378.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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","../files/ModelicaTest_trunk_cpp_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.phi_support,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.phi_support,torque.support.phi,torque.support.tau,torque.tau,torque.useSupport