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.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.004814/0.004814, allocations: 111.4 kB / 21.97 MB, free: 5.25 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.001377/0.001377, allocations: 206.4 kB / 25.27 MB, free: 3.238 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.281/1.281, allocations: 207.6 MB / 236 MB, free: 9.992 MB / 190.1 MB " [Timeout remaining time 179] 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.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(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_ActuatedDrive",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_ActuatedDrive",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001649/0.001649, allocations: 46.91 kB / 348 MB, free: 10.03 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2245/0.2261, allocations: 49.16 MB / 397.1 MB, free: 8.965 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive): time 0.009569/0.2357, allocations: 11.83 MB / 409 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007582/0.2433, allocations: 3.96 MB / 412.9 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001782/0.2451, allocations: 75 kB / 413 MB, free: 14 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005319/0.2504, allocations: 2.757 MB / 415.8 MB, free: 12.57 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005045/0.2554, allocations: 1.941 MB / 417.7 MB, free: 11.2 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001528/0.257, allocations: 0.5734 MB / 418.3 MB, free: 10.81 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005586/0.2625, allocations: 3.764 MB / 422 MB, free: 8.77 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004262/0.2668, allocations: 2.838 MB / 424.9 MB, free: 6.797 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002859/0.2697, allocations: 1.558 MB / 426.4 MB, free: 5.895 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003832/0.2735, allocations: 2.297 MB / 428.7 MB, free: 3.59 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000976/0.2745, allocations: 344 kB / 429.1 MB, free: 3.254 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002412/0.2769, allocations: 1.096 MB / 430.2 MB, free: 2.156 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00229/0.2792, allocations: 1.979 MB / 432.1 MB, free: 176 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003268/0.2824, allocations: 2.245 MB / 434.4 MB, free: 13.91 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008403/0.2908, allocations: 7.233 MB / 441.6 MB, free: 6.656 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.112e-06/0.2908, allocations: 8 kB / 441.6 MB, free: 6.648 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.2908, allocations: 3.938 kB / 441.6 MB, free: 6.645 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.000109/0.291, allocations: 4 kB / 441.6 MB, free: 6.641 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: 1528 * Number of variables: 1528 Notification: Performance of Generate backend data structure: time 0.01637/0.3073, allocations: 5.375 MB / 447 MB, free: 1.207 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.215e-05/0.3074, allocations: 11.98 kB / 447 MB, free: 1.195 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001034/0.3075, allocations: 110.4 kB / 447.1 MB, free: 1.086 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000878/0.3083, allocations: 0.72 MB / 447.8 MB, free: 364 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006857/0.3152, allocations: 1.921 MB / 449.8 MB, free: 14.43 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005447/0.3207, allocations: 2.758 MB / 452.5 MB, free: 11.63 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001988/0.3209, allocations: 238 kB / 452.8 MB, free: 11.39 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007212/0.3216, allocations: 315.8 kB / 453.1 MB, free: 11.09 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01771/0.3393, allocations: 10.71 MB / 463.8 MB, free: 15.68 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001148/0.3394, allocations: 43.64 kB / 463.8 MB, free: 15.64 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000407/0.3398, allocations: 155.8 kB / 464 MB, free: 15.48 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003411/0.3432, allocations: 1.985 MB / 466 MB, free: 13.49 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01839/0.3616, allocations: 9.562 MB / 475.5 MB, free: 3.906 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04818/0.4098, allocations: 39.68 MB / 0.5031 GB, free: 11.09 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0128/0.4226, allocations: 3.267 MB / 0.5063 GB, free: 7.777 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002464/0.4251, allocations: 1.74 MB / 0.508 GB, free: 6.027 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004807/0.4255, allocations: 124.8 kB / 0.5081 GB, free: 5.906 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.179e-05/0.4256, allocations: 55.48 kB / 0.5082 GB, free: 5.844 MB / 430.1 MB Notification: Performance of pre-optimization done (n=148): time 3.597e-06/0.4256, allocations: 4 kB / 0.5082 GB, free: 5.84 MB / 430.1 MB Notification: Performance of matching and sorting (n=154): time 0.04476/0.4703, allocations: 13.88 MB / 0.5218 GB, free: 7.902 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.653e-05/0.4704, allocations: 141.5 kB / 0.5219 GB, free: 7.73 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007722/0.4782, allocations: 4.192 MB / 0.526 GB, free: 3.516 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003849/0.4785, allocations: 45.7 kB / 0.526 GB, free: 3.465 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002978/0.4815, allocations: 3.295 MB / 0.5292 GB, free: 140 kB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009562/0.4825, allocations: 0.6438 MB / 0.5299 GB, free: 15.48 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002254/0.4847, allocations: 1.23 MB / 0.5311 GB, free: 14.24 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001308/0.4849, allocations: 301.1 kB / 0.5314 GB, free: 13.95 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003421/0.4883, allocations: 2.128 MB / 0.5334 GB, free: 11.81 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006682/0.495, allocations: 5.944 MB / 0.5392 GB, free: 3.949 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01105/0.506, allocations: 8.756 MB / 0.5478 GB, free: 9.281 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001072/0.5061, allocations: 36 kB / 0.5478 GB, free: 9.246 MB / 478.1 MB Notification: Performance of matching and sorting (n=775) (initialization): time 0.01568/0.5218, allocations: 8.567 MB / 0.5562 GB, free: 0.668 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.864e-05/0.5219, allocations: 64 kB / 0.5563 GB, free: 0.6055 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001861/0.5221, allocations: 136 kB / 0.5564 GB, free: 484 kB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1587/0.6808, allocations: 0.9104 MB / 0.5573 GB, free: 141.3 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004093/0.6849, allocations: 1.392 MB / 0.5586 GB, free: 141.3 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005831/0.6907, allocations: 5.1 MB / 0.5636 GB, free: 139.4 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003832/0.6945, allocations: 326.9 kB / 0.5639 GB, free: 139.4 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004572/0.695, allocations: 384.3 kB / 0.5643 GB, free: 139.3 MB / 478.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 (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 {(3,13,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002477/0.6975, allocations: 2.101 MB / 0.5663 GB, free: 138.4 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004624/0.6979, allocations: 372.9 kB / 0.5667 GB, free: 138.4 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005213/0.7031, allocations: 3.134 MB / 0.5698 GB, free: 137.4 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.591e-05/0.7032, allocations: 23.72 kB / 0.5698 GB, free: 137.4 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.006e-05/0.7032, allocations: 4.031 kB / 0.5698 GB, free: 137.4 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.356e-05/0.7032, allocations: 9.953 kB / 0.5698 GB, free: 137.4 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01078/0.714, allocations: 7.783 MB / 0.5774 GB, free: 134.7 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.447e-06/0.714, allocations: 0 / 0.5774 GB, free: 134.7 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001165/0.7151, allocations: 260.2 kB / 0.5776 GB, free: 134.7 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001856/0.717, allocations: 0.7076 MB / 0.5783 GB, free: 134.6 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001104/0.7171, allocations: 45.09 kB / 0.5784 GB, free: 134.6 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004478/0.7216, allocations: 4.647 MB / 0.5829 GB, free: 132 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.526e-06/0.7216, allocations: 4.75 kB / 0.5829 GB, free: 132 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006883/0.7285, allocations: 5.689 MB / 0.5885 GB, free: 129.4 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001205/0.7297, allocations: 0.577 MB / 0.589 GB, free: 129.2 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003565/0.73, allocations: 23.69 kB / 0.5891 GB, free: 129.2 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001198/0.7312, allocations: 82.39 kB / 0.5891 GB, free: 129.1 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002464/0.7315, allocations: 111.1 kB / 0.5892 GB, free: 129.1 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001117/0.7316, allocations: 50.47 kB / 0.5893 GB, free: 129 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.00277/0.7343, allocations: 2.614 MB / 0.5918 GB, free: 127.2 MB / 478.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.7343, allocations: 7.969 kB / 0.5919 GB, free: 127.2 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003943/0.7383, allocations: 0.963 MB / 0.5928 GB, free: 126.3 MB / 478.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 (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,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.006404/0.7447, allocations: 6.32 MB / 0.599 GB, free: 119.9 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00547/0.7502, allocations: 4.911 MB / 0.6038 GB, free: 115.1 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.7502, allocations: 192 / 0.6038 GB, free: 115.1 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00145/0.7516, allocations: 1.437 MB / 0.6052 GB, free: 113.6 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002015/0.7536, allocations: 439.6 kB / 0.6056 GB, free: 113.2 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0421/0.7957, allocations: 46.41 MB / 0.6509 GB, free: 60.91 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002317/0.7981, allocations: 3.239 MB / 0.6541 GB, free: 57.64 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003261/0.8013, allocations: 1.933 MB / 0.656 GB, free: 55.7 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001672/0.803, allocations: 1.886 MB / 0.6578 GB, free: 53.81 MB / 478.1 MB Notification: Performance of SimCode: time 1.032e-06/0.803, allocations: 0 / 0.6578 GB, free: 53.81 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.107/0.91, allocations: 72.88 MB / 0.729 GB, free: 12.84 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.62/18.53, allocations: 19.88 kB / 0.729 GB, free: 12.82 MB / 0.4981 GB " [Timeout remaining time 641] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_ActuatedDrive_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219912 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_ActuatedDrive.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/ActuatedDrive/ActuatedDrive.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.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: 21.79361371899722]