Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w|rotor1D.phi|rotor1D.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive") translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w|rotor1D.phi|rotor1D.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001393/0.001393, allocations: 96.55 kB / 16.93 MB, free: 5.984 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.001486/0.001486, allocations: 177.1 kB / 17.82 MB, free: 5.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.456/1.456, allocations: 205.4 MB / 224 MB, free: 13.18 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00044/0.0004401, allocations: 15.94 kB / 280.7 MB, free: 3.754 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09139/0.09184, allocations: 47.58 MB / 328.3 MB, free: 4.105 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive): time 0.04058/0.1325, allocations: 42.99 MB / 371.3 MB, free: 8.992 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.2278/0.3603, allocations: 10.23 MB / 381.5 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007124/0.3675, allocations: 207.3 kB / 381.7 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00755/0.3751, allocations: 2.113 MB / 383.9 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02062/0.3957, allocations: 6.206 MB / 390.1 MB, free: 8.645 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002971/0.3987, allocations: 0.508 MB / 390.6 MB, free: 8.641 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005044/0.4038, allocations: 2.121 MB / 392.7 MB, free: 8.438 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006164/0.41, allocations: 4.295 MB / 397 MB, free: 7.219 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001907/0.4119, allocations: 0.9987 MB / 398 MB, free: 7.043 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002044/0.414, allocations: 1.369 MB / 399.4 MB, free: 6.738 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004539/0.4145, allocations: 142.1 kB / 399.5 MB, free: 6.738 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001522/0.416, allocations: 0.7572 MB / 400.3 MB, free: 6.574 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001212/0.4172, allocations: 1.554 MB / 401.8 MB, free: 6.262 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008995/0.4181, allocations: 0.8385 MB / 402.6 MB, free: 6.227 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005161/0.4233, allocations: 5.528 MB / 408.2 MB, free: 3.211 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.4233, allocations: 1.75 kB / 408.2 MB, free: 3.211 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.4233, allocations: 0 / 408.2 MB, free: 3.211 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001994/0.4235, allocations: 0 / 408.2 MB, free: 3.211 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1528 * Number of variables: 1528 Notification: Performance of Generate backend data structure: time 0.01516/0.4387, allocations: 4.515 MB / 412.7 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.752e-05/0.4388, allocations: 7.719 kB / 412.7 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008295/0.4471, allocations: 2.255 MB / 415 MB, free: 15.67 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005448/0.4526, allocations: 2.524 MB / 417.5 MB, free: 14.79 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001526/0.4527, allocations: 237.9 kB / 417.7 MB, free: 14.66 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007288/0.4535, allocations: 315.8 kB / 418 MB, free: 14.46 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01802/0.4715, allocations: 10.76 MB / 428.8 MB, free: 5.969 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001248/0.4717, allocations: 40.81 kB / 428.8 MB, free: 5.949 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004159/0.4721, allocations: 151.8 kB / 429 MB, free: 5.902 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003116/0.4752, allocations: 1.987 MB / 431 MB, free: 4.246 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01763/0.4928, allocations: 9.61 MB / 440.6 MB, free: 13.46 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0447/0.5376, allocations: 39.97 MB / 480.5 MB, free: 8.18 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01244/0.5501, allocations: 3.866 MB / 484.4 MB, free: 4.18 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005467/0.5507, allocations: 357.3 kB / 484.8 MB, free: 3.785 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.806e-05/0.5507, allocations: 52.03 kB / 484.8 MB, free: 3.73 MB / 382.1 MB Notification: Performance of pre-optimization done (n=148): time 4.779e-06/0.5507, allocations: 0 / 484.8 MB, free: 3.73 MB / 382.1 MB Notification: Performance of matching and sorting (n=154): time 0.04158/0.5923, allocations: 14.11 MB / 498.9 MB, free: 5.484 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.823e-05/0.5924, allocations: 145.5 kB / 499.1 MB, free: 5.312 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005271/0.5977, allocations: 4.274 MB / 0.4915 GB, free: 1.02 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002634/0.598, allocations: 45.7 kB / 0.4916 GB, free: 0.9688 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001957/0.5999, allocations: 3.17 MB / 0.4947 GB, free: 13.81 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006228/0.6006, allocations: 0.6151 MB / 0.4953 GB, free: 13.2 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002261/0.6008, allocations: 116 kB / 0.4954 GB, free: 13.09 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0003341/0.6011, allocations: 0.558 MB / 0.4959 GB, free: 12.52 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003274/0.6044, allocations: 2.111 MB / 0.498 GB, free: 10.41 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00608/0.6105, allocations: 5.912 MB / 0.5038 GB, free: 2.645 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004872/0.6154, allocations: 3.449 MB / 0.5071 GB, free: 15.27 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.535e-05/0.6155, allocations: 40 kB / 0.5072 GB, free: 15.23 MB / 430.1 MB Notification: Performance of matching and sorting (n=775) (initialization): time 0.01533/0.6308, allocations: 8.52 MB / 0.5155 GB, free: 6.699 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.98e-05/0.631, allocations: 63.12 kB / 0.5156 GB, free: 6.641 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001457/0.6311, allocations: 140 kB / 0.5157 GB, free: 6.504 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002429/0.6336, allocations: 0.9337 MB / 0.5166 GB, free: 5.57 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005287/0.6389, allocations: 1.396 MB / 0.518 GB, free: 4.172 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007209/0.6461, allocations: 4.968 MB / 0.5228 GB, free: 15.07 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004748/0.6509, allocations: 331.5 kB / 0.5231 GB, free: 14.75 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007463/0.6517, allocations: 384 kB / 0.5235 GB, free: 14.38 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 620 * Number of states: 0 () * Number of discrete variables: 36 (rotor1D.cylinderColor[3],rotor1D.cylinderColor[2],rotor1D.cylinderColor[1],fixed.color[3],fixed.color[2],fixed.color[1],torque.connectionLineColor[3],torque.connectionLineColor[2],torque.connectionLineColor[1],torque.torqueColor[3],torque.torqueColor[2],torque.torqueColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],bodyCylinder.frameTranslation.color[3],bodyCylinder.frameTranslation.color[2],bodyCylinder.frameTranslation.color[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (736): * Single equations (assignments): 732 * Array equations: 3 * 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 {(3,77.8%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003099/0.6548, allocations: 2.099 MB / 0.5255 GB, free: 12.27 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000535/0.6553, allocations: 347.5 kB / 0.5259 GB, free: 11.93 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005303/0.6606, allocations: 3.156 MB / 0.529 GB, free: 8.746 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.305e-05/0.6607, allocations: 17.64 kB / 0.529 GB, free: 8.73 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.117e-06/0.6607, allocations: 4 kB / 0.529 GB, free: 8.727 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.363e-05/0.6607, allocations: 11.97 kB / 0.529 GB, free: 8.715 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01266/0.6734, allocations: 7.829 MB / 0.5366 GB, free: 0.8398 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.177e-06/0.6734, allocations: 7.938 kB / 0.5366 GB, free: 0.832 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001197/0.6746, allocations: 267.7 kB / 0.5369 GB, free: 0.5703 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.193/0.8676, allocations: 0.7099 MB / 0.5376 GB, free: 156.4 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004771/0.8681, allocations: 37.92 kB / 0.5376 GB, free: 156.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006089/0.8742, allocations: 4.521 MB / 0.542 GB, free: 155.1 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.938e-06/0.8743, allocations: 3.5 kB / 0.542 GB, free: 155.1 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009426/0.8837, allocations: 5.844 MB / 0.5478 GB, free: 153.6 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002192/0.886, allocations: 0.6333 MB / 0.5484 GB, free: 153.4 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006536/0.8866, allocations: 30.98 kB / 0.5484 GB, free: 153.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001443/0.8881, allocations: 88.66 kB / 0.5485 GB, free: 153.3 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000326/0.8884, allocations: 101.9 kB / 0.5486 GB, free: 153.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001453/0.8886, allocations: 55.05 kB / 0.5486 GB, free: 153.3 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005221/0.8938, allocations: 2.692 MB / 0.5513 GB, free: 152.4 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.914e-06/0.8938, allocations: 0 / 0.5513 GB, free: 152.4 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006205/0.9, allocations: 0.9854 MB / 0.5522 GB, free: 152.3 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 4 (revolute.phi,revolute.w,rotor1D.phi,rotor1D.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 (123): * Single equations (assignments): 119 * Array equations: 3 * 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%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005841/0.9006, allocations: 172.7 kB / 0.5524 GB, free: 152.2 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007487/0.9081, allocations: 5.05 MB / 0.5573 GB, free: 150.5 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.404e-06/0.9082, allocations: 6.844 kB / 0.5573 GB, free: 150.5 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001901/0.9101, allocations: 1.532 MB / 0.5588 GB, free: 149.9 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00248/0.9126, allocations: 416.7 kB / 0.5592 GB, free: 149.7 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01545/0.9281, allocations: 10.62 MB / 0.5696 GB, free: 144.4 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00324/0.9314, allocations: 3.325 MB / 0.5728 GB, free: 143.1 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004502/0.9359, allocations: 1.936 MB / 0.5747 GB, free: 142.5 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007941/0.9367, allocations: 269.2 kB / 0.575 GB, free: 142.3 MB / 446.1 MB Notification: Performance of SimCode: time 1.112e-06/0.9367, allocations: 0 / 0.575 GB, free: 142.3 MB / 446.1 MB Notification: Performance of Templates: time 0.05895/0.9957, allocations: 35.15 MB / 0.6093 GB, free: 107.3 MB / 446.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/ActuatedDrive/ActuatedDrive.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches