Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.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: translateModel(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w|rotor1D.phi|rotor1D.w",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2") translateModel(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w|rotor1D.phi|rotor1D.w",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001181/0.001181, allocations: 201.3 kB / 15.8 MB, free: 6.332 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.28/1.28, allocations: 226.6 MB / 243.1 MB, free: 14.3 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007878/0.0007876, allocations: 99.78 kB / 295.1 MB, free: 10.05 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.185/0.185, allocations: 44.83 MB / 392 MB, free: 9.332 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002331/0.0002331, allocations: 8 kB / 464.7 MB, free: 49.76 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09687/0.09711, allocations: 62.96 MB / 0.5153 GB, free: 2.766 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2): time 0.2283/0.3255, allocations: 44.99 MB / 0.5593 GB, free: 13.89 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02385/0.3494, allocations: 9.755 MB / 0.5688 GB, free: 6.824 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009283/0.3587, allocations: 211.5 kB / 0.569 GB, free: 6.617 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006522/0.3653, allocations: 2.325 MB / 0.5713 GB, free: 4.281 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0174/0.3827, allocations: 6.894 MB / 0.578 GB, free: 13.36 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002522/0.3852, allocations: 0.5032 MB / 0.5785 GB, free: 12.86 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.005014/0.3902, allocations: 4.231 MB / 0.5826 GB, free: 8.621 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006352/0.3966, allocations: 4.452 MB / 0.587 GB, free: 4.121 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00216/0.3988, allocations: 1.171 MB / 0.5881 GB, free: 2.945 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002677/0.4015, allocations: 1.815 MB / 0.5899 GB, free: 1.125 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000727/0.4023, allocations: 132 kB / 0.59 GB, free: 0.9961 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001972/0.4042, allocations: 0.7723 MB / 0.5908 GB, free: 228 kB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001966/0.4062, allocations: 1.578 MB / 0.5923 GB, free: 14.64 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00128/0.4075, allocations: 0.7921 MB / 0.5931 GB, free: 13.84 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005253/0.4128, allocations: 5.229 MB / 0.5982 GB, free: 8.598 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/0.4128, allocations: 0 / 0.5982 GB, free: 8.598 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.4128, allocations: 4 kB / 0.5982 GB, free: 8.594 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000132/0.4129, allocations: 0 / 0.5982 GB, free: 8.594 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1442 * Number of variables: 1442 Notification: Performance of Generate backend data structure: time 0.01388/0.4268, allocations: 4.31 MB / 0.6024 GB, free: 4.219 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.884e-05/0.4269, allocations: 8.031 kB / 0.6024 GB, free: 4.211 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006059/0.4329, allocations: 1.936 MB / 0.6043 GB, free: 2.266 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003538/0.4365, allocations: 2.174 MB / 0.6064 GB, free: 32 kB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001455/0.4367, allocations: 225.9 kB / 0.6066 GB, free: 15.8 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000499/0.4372, allocations: 307.7 kB / 0.6069 GB, free: 15.51 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01875/0.4559, allocations: 10.22 MB / 0.6169 GB, free: 4.637 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001083/0.4561, allocations: 39.64 kB / 0.6169 GB, free: 4.598 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003985/0.4565, allocations: 151.9 kB / 0.6171 GB, free: 4.449 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003017/0.4595, allocations: 1.868 MB / 0.6189 GB, free: 2.578 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01776/0.4773, allocations: 9.168 MB / 0.6279 GB, free: 9.387 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04301/0.5204, allocations: 37.58 MB / 0.6646 GB, free: 2.727 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01239/0.5328, allocations: 3.71 MB / 0.6682 GB, free: 14.87 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002195/0.535, allocations: 1.717 MB / 0.6699 GB, free: 13.14 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008737/0.5359, allocations: 0.6784 MB / 0.6705 GB, free: 12.35 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.697e-05/0.536, allocations: 47.06 kB / 0.6706 GB, free: 12.3 MB / 490.7 MB Notification: Performance of pre-optimization done (n=130): time 3.777e-06/0.536, allocations: 0 / 0.6706 GB, free: 12.3 MB / 490.7 MB Notification: Performance of matching and sorting (n=136): time 0.04033/0.5763, allocations: 12.94 MB / 0.6832 GB, free: 15.24 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.218e-05/0.5764, allocations: 141.2 kB / 0.6833 GB, free: 15.07 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006085/0.5825, allocations: 3.951 MB / 0.6872 GB, free: 11.14 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0002216/0.5828, allocations: 45.7 kB / 0.6872 GB, free: 11.09 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002123/0.5849, allocations: 3.005 MB / 0.6902 GB, free: 8.039 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006454/0.5856, allocations: 0.5557 MB / 0.6907 GB, free: 7.477 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003293/0.5859, allocations: 108 kB / 0.6908 GB, free: 7.371 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0003777/0.5863, allocations: 0.5414 MB / 0.6914 GB, free: 6.824 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002849/0.5892, allocations: 1.92 MB / 0.6932 GB, free: 4.898 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00509/0.5943, allocations: 5.504 MB / 0.6986 GB, free: 13.59 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004417/0.5987, allocations: 3.179 MB / 0.7017 GB, free: 10.4 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001022/0.5988, allocations: 36 kB / 0.7017 GB, free: 10.37 MB / 0.5105 GB Notification: Performance of matching and sorting (n=723) (initialization): time 0.01303/0.6118, allocations: 7.919 MB / 0.7095 GB, free: 2.441 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001025/0.612, allocations: 60 kB / 0.7095 GB, free: 2.383 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000174/0.6122, allocations: 132 kB / 0.7097 GB, free: 2.254 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002338/0.6145, allocations: 0.9155 MB / 0.7106 GB, free: 1.336 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003628/0.6182, allocations: 1.298 MB / 0.7118 GB, free: 36 kB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2291/0.8473, allocations: 4.848 MB / 0.7166 GB, free: 158.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004044/0.8514, allocations: 305.6 kB / 0.7168 GB, free: 158.8 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000715/0.8521, allocations: 359.1 kB / 0.7172 GB, free: 158.7 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 582 * Number of states: 0 () * Number of discrete variables: 38 (torque.torqueArrow.arrowLine.twoHeadedArrow,torque.torqueArrow.headAtOrigin,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 (684): * Single equations (assignments): 680 * 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.003293/0.8554, allocations: 1.991 MB / 0.7191 GB, free: 157.9 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005732/0.856, allocations: 336.4 kB / 0.7195 GB, free: 157.9 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005196/0.8612, allocations: 2.791 MB / 0.7222 GB, free: 157.1 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.943e-05/0.8613, allocations: 15.47 kB / 0.7222 GB, free: 157.1 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.114e-05/0.8613, allocations: 5.297 kB / 0.7222 GB, free: 157.1 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.961e-05/0.8613, allocations: 9.094 kB / 0.7222 GB, free: 157.1 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01329/0.8746, allocations: 7.263 MB / 0.7293 GB, free: 154.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.388e-05/0.8747, allocations: 5.969 kB / 0.7293 GB, free: 154.6 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001179/0.8759, allocations: 262.7 kB / 0.7296 GB, free: 154.6 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001963/0.8778, allocations: 0.7129 MB / 0.7303 GB, free: 154.5 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001261/0.878, allocations: 33.86 kB / 0.7303 GB, free: 154.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005277/0.8833, allocations: 4.415 MB / 0.7346 GB, free: 152 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/0.8833, allocations: 1.312 kB / 0.7346 GB, free: 152 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007345/0.8906, allocations: 5.145 MB / 0.7396 GB, free: 150.3 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009736/0.8916, allocations: 392.3 kB / 0.74 GB, free: 150 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003243/0.892, allocations: 28.36 kB / 0.74 GB, free: 150 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001164/0.8931, allocations: 79.83 kB / 0.7401 GB, free: 150 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002331/0.8934, allocations: 100.5 kB / 0.7402 GB, free: 150 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001002/0.8935, allocations: 46.64 kB / 0.7402 GB, free: 150 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.003461/0.897, allocations: 2.46 MB / 0.7426 GB, free: 149.2 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.21e-07/0.897, allocations: 4.453 kB / 0.7427 GB, free: 149.2 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.004287/0.9013, allocations: 0.902 MB / 0.7435 GB, free: 149.1 MB / 0.5105 GB 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 (104): * Single equations (assignments): 100 * 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.0003705/0.9017, allocations: 149.6 kB / 0.7437 GB, free: 149 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.005935/0.9076, allocations: 4.605 MB / 0.7482 GB, free: 147.4 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.9076, allocations: 3.375 kB / 0.7482 GB, free: 147.4 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.001453/0.9091, allocations: 1.361 MB / 0.7495 GB, free: 146.9 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002094/0.9112, allocations: 409.3 kB / 0.7499 GB, free: 146.7 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01181/0.923, allocations: 10.46 MB / 0.7601 GB, free: 138.1 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002205/0.9253, allocations: 3.106 MB / 0.7631 GB, free: 135 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008524/0.9261, allocations: 291.3 kB / 0.7634 GB, free: 134.7 MB / 0.5105 GB Notification: Performance of SimCode: time 1.593e-06/0.9261, allocations: 0 / 0.7634 GB, free: 134.7 MB / 0.5105 GB Notification: Performance of Templates: time 0.07407/1, allocations: 70.68 MB / 0.8324 GB, free: 64.03 MB / 0.5105 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Parts/Rotor1D/Rotor1D_2/Rotor1D_2.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches