Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBearingConversion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestBearingConversion,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_TestBearingConversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestBearingConversion,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_TestBearingConversion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001093/0.001093, allocations: 184.9 kB / 15.76 MB, free: 6.363 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.651/1.651, allocations: 205.4 MB / 221.9 MB, free: 13.84 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001093/0.001093, allocations: 94.8 kB / 270.2 MB, free: 13.37 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2365/0.2365, allocations: 43.57 MB / 362.1 MB, free: 11.31 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003613/0.0003611, allocations: 8 kB / 431.5 MB, free: 19.51 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1345/0.1349, allocations: 58.85 MB / 490.3 MB, free: 8.59 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4656/0.6006, allocations: 101.8 MB / 0.5782 GB, free: 14.14 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002311/0.6009, allocations: 65.53 kB / 0.5783 GB, free: 14.11 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1864/0.7873, allocations: 65.29 MB / 0.642 GB, free: 5.137 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.224e-06/0.7874, allocations: 0 / 0.642 GB, free: 5.137 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002645/0.7877, allocations: 67.98 kB / 0.6421 GB, free: 5.07 MB / 442.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.01111/0.7988, allocations: 3.131 MB / 0.6452 GB, free: 1.879 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.152e-05/0.7989, allocations: 8.031 kB / 0.6452 GB, free: 1.871 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001647/0.8005, allocations: 392.3 kB / 0.6455 GB, free: 1.48 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002434/0.803, allocations: 411.9 kB / 0.6459 GB, free: 1.074 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004658/0.8077, allocations: 1.306 MB / 0.6472 GB, free: 15.71 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0011/0.8088, allocations: 0.5767 MB / 0.6478 GB, free: 15.07 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001311/0.8101, allocations: 319.6 kB / 0.6481 GB, free: 14.76 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008125/0.8183, allocations: 3.364 MB / 0.6514 GB, free: 11.28 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001608/0.8185, allocations: 35.7 kB / 0.6514 GB, free: 11.24 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003144/0.8188, allocations: 120 kB / 0.6515 GB, free: 11.12 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.012e-05/0.8189, allocations: 68 kB / 0.6516 GB, free: 11.06 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007802/0.8267, allocations: 3.482 MB / 0.655 GB, free: 7.582 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01914/0.8458, allocations: 9.793 MB / 0.6645 GB, free: 13.55 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006588/0.8525, allocations: 3.147 MB / 0.6676 GB, free: 10.21 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004231/0.8529, allocations: 236 kB / 0.6678 GB, free: 9.945 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.276e-05/0.853, allocations: 92.56 kB / 0.6679 GB, free: 9.848 MB / 474.7 MB Notification: Performance of pre-optimization done (n=366): time 5.661e-06/0.853, allocations: 0 / 0.6679 GB, free: 9.848 MB / 474.7 MB Notification: Performance of matching and sorting (n=429): time 0.04489/0.8979, allocations: 21.37 MB / 0.6888 GB, free: 3.246 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004243/0.8984, allocations: 0.6127 MB / 0.6894 GB, free: 2.5 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003009/0.9014, allocations: 1.318 MB / 0.6907 GB, free: 1.184 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001333/0.9028, allocations: 125.6 kB / 0.6908 GB, free: 1.055 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001096/0.9039, allocations: 0.8997 MB / 0.6917 GB, free: 144 kB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002247/0.9061, allocations: 1.433 MB / 0.6931 GB, free: 14.68 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002896/0.9064, allocations: 91.98 kB / 0.6932 GB, free: 14.59 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002703/0.9067, allocations: 463 kB / 0.6936 GB, free: 14.13 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003134/0.9098, allocations: 1.437 MB / 0.695 GB, free: 12.69 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003589/0.9134, allocations: 2.157 MB / 0.6971 GB, free: 10.25 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002995/0.9165, allocations: 1.452 MB / 0.6985 GB, free: 8.797 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.648e-05/0.9165, allocations: 8 kB / 0.6985 GB, free: 8.789 MB / 0.4948 GB Notification: Performance of matching and sorting (n=538) (initialization): time 0.01044/0.9269, allocations: 4.825 MB / 0.7032 GB, free: 3.926 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 5.355e-05/0.927, allocations: 14.94 kB / 0.7033 GB, free: 3.914 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.064e-05/0.9271, allocations: 23.95 kB / 0.7033 GB, free: 3.891 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004301/0.9314, allocations: 1.774 MB / 0.705 GB, free: 2.086 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003448/0.9349, allocations: 0.8074 MB / 0.7058 GB, free: 1.277 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.324/1.259, allocations: 16.55 MB / 0.722 GB, free: 127.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00408/1.263, allocations: 385 kB / 0.7223 GB, free: 127.6 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00103/1.264, allocations: 184.6 kB / 0.7225 GB, free: 127.6 MB / 0.4948 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 () * Number of clocked 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.002484/1.267, allocations: 0.6076 MB / 0.7231 GB, free: 127.4 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001389/1.268, allocations: 290.7 kB / 0.7234 GB, free: 127.4 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004111/1.272, allocations: 1.582 MB / 0.7249 GB, free: 127.3 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.432e-05/1.272, allocations: 47.84 kB / 0.725 GB, free: 127.3 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.721e-05/1.272, allocations: 8.266 kB / 0.725 GB, free: 127.3 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.176e-05/1.272, allocations: 24.36 kB / 0.725 GB, free: 127.3 MB / 0.4948 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.02733/1.3, allocations: 10.42 MB / 0.7352 GB, free: 125.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.707e-05/1.3, allocations: 11.78 kB / 0.7352 GB, free: 125.4 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003532/1.303, allocations: 0.7294 MB / 0.7359 GB, free: 125.4 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003821/1.307, allocations: 1.635 MB / 0.7375 GB, free: 125.4 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007014/1.308, allocations: 138 kB / 0.7376 GB, free: 125.4 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0168/1.325, allocations: 16.04 MB / 0.7533 GB, free: 113.2 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.656e-05/1.325, allocations: 17.03 kB / 0.7533 GB, free: 113.2 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01639/1.341, allocations: 8.499 MB / 0.7616 GB, free: 108.3 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00301/1.344, allocations: 0.6993 MB / 0.7623 GB, free: 107.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008912/1.345, allocations: 114.8 kB / 0.7624 GB, free: 107.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003317/1.348, allocations: 351.7 kB / 0.7627 GB, free: 107.7 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001266/1.35, allocations: 0.6086 MB / 0.7633 GB, free: 107.6 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000316/1.35, allocations: 168 kB / 0.7635 GB, free: 107.6 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001627/1.352, allocations: 1.006 MB / 0.7645 GB, free: 107.2 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.6e-07/1.352, allocations: 0 / 0.7645 GB, free: 107.2 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.00596/1.358, allocations: 0.9883 MB / 0.7654 GB, free: 107.1 MB / 0.4948 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) * Number of clocked states: 0 () * 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.01525/1.373, allocations: 11.97 MB / 0.7771 GB, free: 98.96 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01324/1.386, allocations: 5.058 MB / 0.7821 GB, free: 96.65 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.91e-05/1.386, allocations: 0 / 0.7821 GB, free: 96.65 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.00946/1.396, allocations: 3.966 MB / 0.7859 GB, free: 94.67 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004428/1.4, allocations: 372.4 kB / 0.7863 GB, free: 94.53 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04731/1.448, allocations: 34.41 MB / 0.8199 GB, free: 63.96 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002597/1.45, allocations: 1.896 MB / 0.8218 GB, free: 62.45 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.003015/1.453, allocations: 453.7 kB / 0.8222 GB, free: 62.11 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002227/1.456, allocations: 1.138 MB / 0.8233 GB, free: 61.09 MB / 0.4948 GB Notification: Performance of SimCode: time 2.034e-06/1.456, allocations: 0 / 0.8233 GB, free: 61.09 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1129/1.569, allocations: 74.03 MB / 0.8956 GB, free: 8.156 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001732/1.569, allocations: 210.8 kB / 0.8958 GB, free: 7.914 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.045/6.614, allocations: 0 / 0.8958 GB, free: 7.914 MB / 0.5105 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBearingConversion.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBearingConversion.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBearingConversion.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBearingConversion.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBearingConversion_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Rotational_TestBearingConversion_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Rotational_TestBearingConversion.fmu > ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBearingConversion.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Rotational.TestBearingConversion_res.mat does not exist to compare? outputFormat=mat