Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBearingConversion.conf.json 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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestBearingConversion,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_TestBearingConversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestBearingConversion,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_TestBearingConversion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001186/0.001186, allocations: 180.5 kB / 14.15 MB, free: 1.176 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.478/1.478, allocations: 221.3 MB / 236 MB, free: 3 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001009/0.001009, allocations: 87.86 kB / 287 MB, free: 256 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2166/0.2166, allocations: 44.16 MB / 382 MB, free: 14.69 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 4.891e-05/4.894e-05, allocations: 4 kB / 451.9 MB, free: 9.348 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1579/0.1579, allocations: 61.91 MB / 0.5018 GB, free: 11.38 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5081/0.6661, allocations: 103.2 MB / 0.6026 GB, free: 2.031 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002428/0.6664, allocations: 67.91 kB / 0.6026 GB, free: 1.965 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1904/0.8568, allocations: 66.28 MB / 0.6674 GB, free: 15.45 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.927e-06/0.8569, allocations: 8 kB / 0.6674 GB, free: 15.45 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001577/0.857, allocations: 64 kB / 0.6674 GB, free: 15.38 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 719 * Number of variables: 719 Notification: Performance of Generate backend data structure: time 0.01027/0.8673, allocations: 2.871 MB / 0.6702 GB, free: 12.46 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.226e-05/0.8674, allocations: 8.031 kB / 0.6702 GB, free: 12.45 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001479/0.8689, allocations: 396.3 kB / 0.6706 GB, free: 12.06 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001917/0.8708, allocations: 407.8 kB / 0.671 GB, free: 11.66 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002855/0.8737, allocations: 1.298 MB / 0.6723 GB, free: 10.3 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008526/0.8745, allocations: 0.5767 MB / 0.6728 GB, free: 9.664 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006464/0.8752, allocations: 323.5 kB / 0.6731 GB, free: 9.348 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006231/0.8814, allocations: 3.157 MB / 0.6762 GB, free: 6.074 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000132/0.8816, allocations: 39.55 kB / 0.6763 GB, free: 6.035 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003202/0.8819, allocations: 120 kB / 0.6764 GB, free: 5.918 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.375e-05/0.882, allocations: 76 kB / 0.6765 GB, free: 5.844 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005833/0.8879, allocations: 3.075 MB / 0.6795 GB, free: 2.773 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02064/0.9085, allocations: 9.798 MB / 0.689 GB, free: 8.73 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005079/0.9137, allocations: 2.915 MB / 0.6919 GB, free: 5.633 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002898/0.9166, allocations: 1.557 MB / 0.6934 GB, free: 4.031 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003989/0.917, allocations: 228.2 kB / 0.6936 GB, free: 3.773 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.454e-05/0.9171, allocations: 96.36 kB / 0.6937 GB, free: 3.672 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=366): time 6.312e-06/0.9171, allocations: 0 / 0.6937 GB, free: 3.672 MB / 0.4948 GB Notification: Performance of matching and sorting (n=429): time 0.03046/0.9476, allocations: 17.45 MB / 0.7107 GB, free: 1.133 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002984/0.9479, allocations: 0.6006 MB / 0.7113 GB, free: 408 kB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.3557/1.304, allocations: 1.289 MB / 0.7126 GB, free: 141.4 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001608/1.305, allocations: 124 kB / 0.7127 GB, free: 141.4 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001079/1.306, allocations: 0.9016 MB / 0.7136 GB, free: 141.3 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002498/1.309, allocations: 1.435 MB / 0.715 GB, free: 140.7 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005916/1.31, allocations: 86.8 kB / 0.7151 GB, free: 140.7 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002999/1.31, allocations: 471 kB / 0.7155 GB, free: 140.4 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003022/1.313, allocations: 1.345 MB / 0.7168 GB, free: 140.3 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003888/1.317, allocations: 2.077 MB / 0.7189 GB, free: 139.6 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003272/1.32, allocations: 1.354 MB / 0.7202 GB, free: 139.6 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.681e-05/1.32, allocations: 5.188 kB / 0.7202 GB, free: 139.6 MB / 0.5105 GB Notification: Performance of matching and sorting (n=538) (initialization): time 0.011/1.331, allocations: 4.632 MB / 0.7247 GB, free: 139.3 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 5.21e-05/1.331, allocations: 13.94 kB / 0.7247 GB, free: 139.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.504e-05/1.331, allocations: 25.62 kB / 0.7247 GB, free: 139.3 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004536/1.336, allocations: 1.722 MB / 0.7264 GB, free: 139.2 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004008/1.34, allocations: 0.8131 MB / 0.7272 GB, free: 139.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01865/1.359, allocations: 16.23 MB / 0.7431 GB, free: 128.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004977/1.364, allocations: 386.1 kB / 0.7434 GB, free: 128 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009524/1.365, allocations: 186.8 kB / 0.7436 GB, free: 128 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 82 * Number of states: 0 () * Number of discrete variables: 60 ($PRE.bearingFriction1.startForward,bearingFriction1.startForward,$PRE.bearingFriction1.startBackward,bearingFriction1.startBackward,bearingFriction1.locked,$PRE.bearingFriction1.mode,bearingFriction1.mode,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,brake1.free,$PRE.brake1.startForward,brake1.startForward,$PRE.brake1.startBackward,brake1.startBackward,brake1.locked,$PRE.brake1.mode,brake1.mode,gear2_2.lossyGear.tau_aPos,gear2_2.lossyGear.startForward,gear2_2.lossyGear.startBackward,gear2_2.lossyGear.locked,$PRE.gear2_2.lossyGear.mode,gear2_2.lossyGear.mode,gear2_2.lossyGear.ideal,gear2_1.lossyGear.tau_aPos,gear2_1.lossyGear.startForward,gear2_1.lossyGear.startBackward,gear2_1.lossyGear.locked,$PRE.gear2_1.lossyGear.mode,gear2_1.lossyGear.mode,gear2_1.lossyGear.ideal,lossyGear1.tau_aPos,lossyGear1.startForward,lossyGear1.startBackward,lossyGear1.locked,$PRE.lossyGear1.mode,lossyGear1.mode,lossyGear1.ideal,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,$PRE.lossyGear.mode,lossyGear.mode,lossyGear.ideal,bearingFriction.free,bearingFriction1.free) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (403): * Single equations (assignments): 389 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 8 {1 6,1 12,1 6,1 6,2 22,2 22,2 25,2 24} Notification: Performance of prepare postOptimizeDAE: time 0.001098/1.366, allocations: 364.8 kB / 0.744 GB, free: 127.8 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00099/1.367, allocations: 295.2 kB / 0.7442 GB, free: 127.6 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003416/1.37, allocations: 1.546 MB / 0.7458 GB, free: 126.9 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.218e-05/1.37, allocations: 41.97 kB / 0.7458 GB, free: 126.9 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.114e-05/1.37, allocations: 9.406 kB / 0.7458 GB, free: 126.9 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.037e-05/1.37, allocations: 23.88 kB / 0.7458 GB, free: 126.9 MB / 0.5105 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01822/1.388, allocations: 10.07 MB / 0.7557 GB, free: 122.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.342e-05/1.389, allocations: 7.719 kB / 0.7557 GB, free: 122.1 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003286/1.392, allocations: 0.7374 MB / 0.7564 GB, free: 122.1 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003398/1.395, allocations: 1.598 MB / 0.7579 GB, free: 121.6 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004879/1.396, allocations: 136.6 kB / 0.7581 GB, free: 121.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01414/1.41, allocations: 15.71 MB / 0.7734 GB, free: 108.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.158e-06/1.41, allocations: 16.31 kB / 0.7734 GB, free: 108.8 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01145/1.421, allocations: 7.867 MB / 0.7811 GB, free: 103.9 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001963/1.423, allocations: 0.7001 MB / 0.7818 GB, free: 103.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006078/1.424, allocations: 111.8 kB / 0.7819 GB, free: 103.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003045/1.427, allocations: 357.8 kB / 0.7823 GB, free: 103.4 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001386/1.429, allocations: 0.6087 MB / 0.7828 GB, free: 103.3 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000365/1.429, allocations: 163.9 kB / 0.783 GB, free: 103.3 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001543/1.43, allocations: 0.9821 MB / 0.784 GB, free: 102.9 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.9e-07/1.43, allocations: 0 / 0.784 GB, free: 102.9 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.005136/1.436, allocations: 0.9924 MB / 0.7849 GB, free: 102.8 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 42 * Number of states: 40 (slidingMass1.s,slidingMass1.v,slidingMass.s,slidingMass.v,inertia21.phi,inertia21.w,linearSpeedDependentTorque.phi,inertia20.w,position4.phi,position4.w,position5.phi,position5.w,position2.phi,position2.w,position3.phi,position3.w,gear2_2.phi_rel,gear2_2.w_rel,inertia11.phi,inertia11.w,position.phi,position.w,position1.phi,position1.w,gear2_1.phi_rel,gear2_1.w_rel,inertia9.phi,inertia9.w,inertia7.phi,inertia7.w,inertia5.phi,inertia5.w,inertia2.phi,inertia2.w,brake1.phi,inertia3.w,inertia.phi,inertia.w,inertia1.w,bearingFriction1.phi) * Number of discrete variables: 38 (gear2_2.lossyGear.tau_aPos,gear2_2.lossyGear.startForward,gear2_2.lossyGear.startBackward,gear2_2.lossyGear.locked,gear2_2.lossyGear.mode,gear2_1.lossyGear.tau_aPos,gear2_1.lossyGear.startForward,gear2_1.lossyGear.startBackward,gear2_1.lossyGear.locked,gear2_1.lossyGear.mode,lossyGear1.tau_aPos,lossyGear1.startForward,lossyGear1.startBackward,lossyGear1.locked,lossyGear1.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,lossyGear.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,brake1.free,brake1.startForward,brake1.startBackward,brake1.locked,brake1.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode,bearingFriction1.startForward,bearingFriction1.startBackward,bearingFriction1.locked,bearingFriction1.mode) * Number of discrete states: 16 (bearingFriction1.mode,bearingFriction1.startForward,bearingFriction1.startBackward,bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,brake1.mode,brake1.startForward,brake1.startBackward,brake.mode,brake.startForward,brake.startBackward,lossyGear.mode,lossyGear1.mode,gear2_1.lossyGear.mode,gear2_2.lossyGear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (303): * Single equations (assignments): 293 * 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: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 8 {2 21,2 21,2 23,2 23,1 5,1 5,1 9,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0115/1.447, allocations: 11.31 MB / 0.796 GB, free: 94.67 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.007666/1.455, allocations: 4.674 MB / 0.8005 GB, free: 91.38 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.316e-05/1.455, allocations: 4 kB / 0.8005 GB, free: 91.38 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.006822/1.462, allocations: 3.73 MB / 0.8042 GB, free: 87.8 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003449/1.465, allocations: 376 kB / 0.8045 GB, free: 87.5 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01837/1.484, allocations: 7.594 MB / 0.812 GB, free: 80.75 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002102/1.486, allocations: 1.902 MB / 0.8138 GB, free: 79.25 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.00279/1.489, allocations: 443.9 kB / 0.8142 GB, free: 78.92 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002137/1.491, allocations: 1.142 MB / 0.8154 GB, free: 77.89 MB / 0.5105 GB Notification: Performance of SimCode: time 1.122e-06/1.491, allocations: 0 / 0.8154 GB, free: 77.89 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.119/1.61, allocations: 74.21 MB / 0.8878 GB, free: 11.43 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001705/1.61, allocations: 180.7 kB / 0.888 GB, free: 11.21 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.219/6.829, allocations: 4 kB / 0.888 GB, free: 11.21 MB / 0.5105 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBearingConversion.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBearingConversion.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBearingConversion.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBearingConversion.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBearingConversion_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Rotational_TestBearingConversion_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Rotational_TestBearingConversion.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBearingConversion.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBearingConversion_res.mat does not exist to compare? outputFormat=mat