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.001518/0.001518, allocations: 114.4 kB / 17.78 MB, free: 5.266 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.001797/0.001798, allocations: 183.1 kB / 18.71 MB, free: 4.344 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.39/1.39, allocations: 222.9 MB / 242.4 MB, free: 15.04 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.2206/0.2206, allocations: 44.19 MB / 336.8 MB, free: 2.637 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00143/0.00143, allocations: 60.05 kB / 470 MB, free: 13.66 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3632/0.3647, allocations: 60.83 MB / 0.5184 GB, free: 3.258 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003191/0.3679, allocations: 1.903 MB / 0.5203 GB, free: 1.934 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008701/0.3688, allocations: 0.4936 MB / 0.5207 GB, free: 1.578 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001133/0.369, allocations: 3.25 kB / 0.5207 GB, free: 1.578 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000146/0.3692, allocations: 18.58 kB / 0.5208 GB, free: 1.566 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001007/0.3693, allocations: 41.92 kB / 0.5208 GB, free: 1.535 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000199/0.3695, allocations: 35.97 kB / 0.5208 GB, free: 1.516 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001863/0.3697, allocations: 139.8 kB / 0.521 GB, free: 1.449 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001729/0.3699, allocations: 66.42 kB / 0.521 GB, free: 1.41 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001259/0.37, allocations: 68.38 kB / 0.5211 GB, free: 1.375 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001271/0.3701, allocations: 69.64 kB / 0.5212 GB, free: 1.336 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.025e-05/0.3702, allocations: 12.31 kB / 0.5212 GB, free: 1.336 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.829e-05/0.3702, allocations: 12.62 kB / 0.5212 GB, free: 1.336 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.212e-05/0.3702, allocations: 27.41 kB / 0.5212 GB, free: 1.316 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.987e-05/0.3703, allocations: 66.23 kB / 0.5213 GB, free: 1.277 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002445/0.3706, allocations: 154.8 kB / 0.5214 GB, free: 1.215 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.3706, allocations: 0.7031 kB / 0.5214 GB, free: 1.215 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.3706, allocations: 0 / 0.5214 GB, free: 1.215 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.12e-05/0.3706, allocations: 0 / 0.5214 GB, free: 1.215 MB / 382.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.0005204/0.3711, allocations: 429.4 kB / 0.5218 GB, free: 0.8125 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.418e-05/0.3712, allocations: 9.469 kB / 0.5218 GB, free: 0.8125 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.039e-05/0.3712, allocations: 46.09 kB / 0.5219 GB, free: 0.7656 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.783e-05/0.3713, allocations: 20.16 kB / 0.5219 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002475/0.3715, allocations: 209.8 kB / 0.5221 GB, free: 0.5312 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.578e-05/0.3716, allocations: 9.969 kB / 0.5221 GB, free: 0.5273 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.833e-05/0.3716, allocations: 13.27 kB / 0.5221 GB, free: 0.5234 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002638/0.3719, allocations: 130.6 kB / 0.5223 GB, free: 464 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.508e-05/0.3719, allocations: 3.906 kB / 0.5223 GB, free: 460 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.552e-05/0.3719, allocations: 5 kB / 0.5223 GB, free: 456 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.552e-06/0.3719, allocations: 3.406 kB / 0.5223 GB, free: 456 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001896/0.3721, allocations: 89.78 kB / 0.5224 GB, free: 424 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006398/0.3728, allocations: 462.5 kB / 0.5228 GB, free: 56 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002532/0.373, allocations: 126.4 kB / 0.5229 GB, free: 15.98 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001166/0.3732, allocations: 56.64 kB / 0.523 GB, free: 15.96 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.324e-05/0.3732, allocations: 10.03 kB / 0.523 GB, free: 15.95 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.631e-05/0.3732, allocations: 35.91 kB / 0.523 GB, free: 15.91 MB / 398.1 MB Notification: Performance of pre-optimization done (n=13): time 1.383e-06/0.3732, allocations: 0 / 0.523 GB, free: 15.91 MB / 398.1 MB Notification: Performance of matching and sorting (n=19): time 0.00156/0.3748, allocations: 0.8005 MB / 0.5238 GB, free: 15.3 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.029e-05/0.3749, allocations: 53.5 kB / 0.5238 GB, free: 15.23 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000134/0.375, allocations: 146.3 kB / 0.524 GB, free: 15.12 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.866e-05/0.375, allocations: 31.55 kB / 0.524 GB, free: 15.08 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.225e-05/0.3751, allocations: 114.3 kB / 0.5241 GB, free: 14.97 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.494e-05/0.3752, allocations: 68.31 kB / 0.5242 GB, free: 14.92 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.807e-05/0.3753, allocations: 35.59 kB / 0.5242 GB, free: 14.89 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001398/0.3754, allocations: 326.9 kB / 0.5245 GB, free: 14.57 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001037/0.3755, allocations: 41.84 kB / 0.5246 GB, free: 14.56 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001434/0.3757, allocations: 82.7 kB / 0.5247 GB, free: 14.5 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002255/0.3759, allocations: 130.2 kB / 0.5248 GB, free: 14.43 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.3759, allocations: 5.062 kB / 0.5248 GB, free: 14.42 MB / 398.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004189/0.3763, allocations: 203.8 kB / 0.525 GB, free: 14.32 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.218e-05/0.3764, allocations: 9.406 kB / 0.525 GB, free: 14.32 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.146e-06/0.3764, allocations: 1.125 kB / 0.525 GB, free: 14.32 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001783/0.3766, allocations: 40.66 kB / 0.525 GB, free: 14.3 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001665/0.3767, allocations: 33.16 kB / 0.5251 GB, free: 14.3 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00161/0.3784, allocations: 1.742 MB / 0.5268 GB, free: 12.63 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001061/0.3785, allocations: 12.17 kB / 0.5268 GB, free: 12.62 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.536e-05/0.3785, allocations: 4.359 kB / 0.5268 GB, free: 12.62 MB / 398.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.0001288/0.3787, allocations: 125.7 kB / 0.5269 GB, free: 12.5 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.061e-05/0.3787, allocations: 14.97 kB / 0.5269 GB, free: 12.49 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.373e-05/0.3788, allocations: 24.44 kB / 0.5269 GB, free: 12.48 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.538e-05/0.3788, allocations: 6.5 kB / 0.5269 GB, free: 12.47 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.138e-05/0.3788, allocations: 5.844 kB / 0.5269 GB, free: 12.47 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.544e-06/0.3788, allocations: 1.406 kB / 0.5269 GB, free: 12.47 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009031/0.3797, allocations: 0.5399 MB / 0.5275 GB, free: 12.05 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.3797, allocations: 1.375 kB / 0.5275 GB, free: 12.05 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001712/0.3799, allocations: 37.02 kB / 0.5275 GB, free: 12.05 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000133/0.3801, allocations: 37.73 kB / 0.5275 GB, free: 12.03 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.482e-05/0.3801, allocations: 1.938 kB / 0.5275 GB, free: 12.03 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001245/0.3813, allocations: 1.483 MB / 0.529 GB, free: 10.56 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.3813, allocations: 0.6562 kB / 0.529 GB, free: 10.56 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005406/0.3819, allocations: 339.4 kB / 0.5293 GB, free: 10.34 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.112e-05/0.382, allocations: 94.52 kB / 0.5294 GB, free: 10.23 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.007e-05/0.382, allocations: 5.375 kB / 0.5294 GB, free: 10.23 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.327e-05/0.3821, allocations: 4.156 kB / 0.5294 GB, free: 10.23 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.613e-05/0.3822, allocations: 19.55 kB / 0.5294 GB, free: 10.22 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.114e-05/0.3822, allocations: 4.875 kB / 0.5294 GB, free: 10.22 MB / 398.1 MB Notification: Performance of sorting global known variables: time 8.781e-05/0.3823, allocations: 107.1 kB / 0.5295 GB, free: 10.14 MB / 398.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3823, allocations: 0 / 0.5295 GB, free: 10.14 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003628/0.3827, allocations: 41.62 kB / 0.5296 GB, free: 10.13 MB / 398.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.0008588/0.3835, allocations: 0.8783 MB / 0.5304 GB, free: 9.371 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005686/0.3841, allocations: 275.6 kB / 0.5307 GB, free: 9.195 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.3841, allocations: 3.938 kB / 0.5307 GB, free: 9.191 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002864/0.3844, allocations: 193.6 kB / 0.5309 GB, free: 9.055 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003713/0.3848, allocations: 22.02 kB / 0.5309 GB, free: 9.043 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002726/0.3875, allocations: 2.047 MB / 0.5329 GB, free: 7.414 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000338/0.3879, allocations: 0.7176 MB / 0.5336 GB, free: 6.715 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 7.285e-05/0.388, allocations: 16.03 kB / 0.5336 GB, free: 6.711 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.447e-05/0.3881, allocations: 45.3 kB / 0.5337 GB, free: 6.676 MB / 398.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3881, allocations: 0 / 0.5337 GB, free: 6.676 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02755/0.4157, allocations: 3.475 MB / 0.5371 GB, free: 4.996 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.863/10.28, allocations: 13.44 kB / 0.5371 GB, free: 4.988 MB / 398.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