Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.AllComponents.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.AllComponents,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_AllComponents",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.AllComponents,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_AllComponents",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: 169.7 kB / 8.739 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.54/1.54, allocations: 221.5 MB / 230.7 MB, free: 7.559 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.001243/0.001243, allocations: 96.72 kB / 281.6 MB, free: 5.312 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2036/0.2036, allocations: 44.14 MB / 376.5 MB, free: 3.035 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.627e-05/1.634e-05, allocations: 224 / 444.7 MB, free: 15.13 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1397/0.1397, allocations: 61.92 MB / 0.4948 GB, free: 1.152 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4332/0.573, allocations: 105.8 MB / 0.5981 GB, free: 6.613 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001987/0.5732, allocations: 63.97 kB / 0.5981 GB, free: 6.551 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1406/0.7139, allocations: 49.7 MB / 0.6467 GB, free: 4.684 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.913e-06/0.7139, allocations: 3.938 kB / 0.6467 GB, free: 4.68 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001435/0.7141, allocations: 51.98 kB / 0.6467 GB, free: 4.629 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 547 * Number of variables: 547 Notification: Performance of Generate backend data structure: time 0.006959/0.721, allocations: 2.344 MB / 0.649 GB, free: 2.227 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.787e-05/0.7211, allocations: 15.98 kB / 0.649 GB, free: 2.211 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001499/0.7226, allocations: 296.9 kB / 0.6493 GB, free: 1.918 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002515/0.7251, allocations: 0.9784 MB / 0.6503 GB, free: 0.8828 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007775/0.7259, allocations: 400 kB / 0.6506 GB, free: 456 kB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004312/0.7264, allocations: 139.8 kB / 0.6508 GB, free: 316 kB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003813/0.7302, allocations: 2.078 MB / 0.6528 GB, free: 14.22 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003686/0.7339, allocations: 2.048 MB / 0.6548 GB, free: 12.1 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.195e-05/0.734, allocations: 35.7 kB / 0.6548 GB, free: 12.07 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001826/0.7342, allocations: 0 / 0.6548 GB, free: 12.07 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.171e-05/0.7343, allocations: 52 kB / 0.6549 GB, free: 12.02 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01265/0.7469, allocations: 6.241 MB / 0.661 GB, free: 5.684 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003027/0.75, allocations: 2.096 MB / 0.663 GB, free: 3.469 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001654/0.7517, allocations: 1.104 MB / 0.6641 GB, free: 2.352 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002713/0.7519, allocations: 131.2 kB / 0.6642 GB, free: 2.203 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.857e-05/0.752, allocations: 68.67 kB / 0.6643 GB, free: 2.125 MB / 474.7 MB Notification: Performance of pre-optimization done (n=280): time 5.54e-06/0.752, allocations: 0 / 0.6643 GB, free: 2.125 MB / 474.7 MB Notification: Performance of matching and sorting (n=338): time 0.01929/0.7713, allocations: 10.05 MB / 0.6741 GB, free: 7.605 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001625/0.7715, allocations: 274 kB / 0.6744 GB, free: 7.281 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001336/0.7729, allocations: 0.7313 MB / 0.6751 GB, free: 6.535 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006255/0.7735, allocations: 45.69 kB / 0.6751 GB, free: 6.484 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006756/0.7742, allocations: 0.69 MB / 0.6758 GB, free: 5.785 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001295/0.7755, allocations: 1.089 MB / 0.6769 GB, free: 4.68 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001697/0.7757, allocations: 0 / 0.6769 GB, free: 4.68 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002726/0.776, allocations: 428.6 kB / 0.6773 GB, free: 4.254 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001729/0.7777, allocations: 0.9475 MB / 0.6782 GB, free: 3.305 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002016/0.7797, allocations: 1.347 MB / 0.6795 GB, free: 1.836 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002206/0.7819, allocations: 0.9838 MB / 0.6805 GB, free: 0.8594 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.023e-05/0.782, allocations: 4 kB / 0.6805 GB, free: 0.8555 MB / 490.7 MB Notification: Performance of matching and sorting (n=407) (initialization): time 0.005764/0.7877, allocations: 3.024 MB / 0.6834 GB, free: 13.81 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 5.406e-05/0.7878, allocations: 15.94 kB / 0.6835 GB, free: 13.79 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.334e-05/0.7879, allocations: 11.98 kB / 0.6835 GB, free: 13.78 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002144/0.79, allocations: 1.004 MB / 0.6844 GB, free: 12.77 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003115/0.7931, allocations: 0.749 MB / 0.6852 GB, free: 12.02 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008611/0.8018, allocations: 7.298 MB / 0.6923 GB, free: 4.41 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002663/0.8045, allocations: 231.9 kB / 0.6925 GB, free: 4.184 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005691/0.8051, allocations: 127.9 kB / 0.6926 GB, free: 4.059 MB / 0.4948 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: clutch.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: brake.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: bearingFriction.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: lossyGear.flange_a.tau:VARIABLE(flow=true unit = "N.m" ) "Cut torque in the flange" type: Real lossyGear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: gear2_1.flange_a.tau:VARIABLE(flow=true unit = "N.m" ) "Cut torque in the flange" type: Real gear2_1.lossyGear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * Number of states: 0 () * Number of discrete variables: 38 (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,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,$PRE.lossyGear.mode,lossyGear.mode,lossyGear.ideal,bearingFriction.free) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (338): * Single equations (assignments): 330 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {2 22,2 25,1 6,1 7,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0007604/0.8058, allocations: 187.4 kB / 0.6928 GB, free: 3.871 MB / 0.4948 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.006317/0.8122, allocations: 2.757 MB / 0.6955 GB, free: 1.086 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007278/0.8129, allocations: 201.7 kB / 0.6957 GB, free: 0.8867 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004469/0.8174, allocations: 2.146 MB / 0.6978 GB, free: 14.7 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.643e-05/0.8175, allocations: 36 kB / 0.6978 GB, free: 14.67 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.756e-05/0.8175, allocations: 4 kB / 0.6978 GB, free: 14.66 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-05/0.8176, allocations: 15.94 kB / 0.6979 GB, free: 14.65 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.01549/0.8331, allocations: 6.88 MB / 0.7046 GB, free: 7.582 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.512e-05/0.8331, allocations: 8 kB / 0.7046 GB, free: 7.574 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003279/0.8364, allocations: 0.7338 MB / 0.7053 GB, free: 6.84 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002248/0.8387, allocations: 1.005 MB / 0.7063 GB, free: 5.812 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004337/0.8391, allocations: 55.92 kB / 0.7063 GB, free: 5.758 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3135/1.153, allocations: 9.797 MB / 0.7159 GB, free: 145.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-05/1.153, allocations: 12.88 kB / 0.7159 GB, free: 145.5 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008615/1.161, allocations: 5.263 MB / 0.7211 GB, free: 143.9 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001167/1.163, allocations: 0.518 MB / 0.7216 GB, free: 143.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003985/1.163, allocations: 30.58 kB / 0.7216 GB, free: 143.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002908/1.166, allocations: 249 kB / 0.7218 GB, free: 143.8 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000979/1.167, allocations: 447.7 kB / 0.7223 GB, free: 143.8 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002972/1.167, allocations: 126.4 kB / 0.7224 GB, free: 143.8 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0008514/1.168, allocations: 0.5491 MB / 0.7229 GB, free: 143.7 MB / 0.5105 GB Notification: Performance of sort global known variables: time 3.41e-07/1.168, allocations: 3.062 kB / 0.7229 GB, free: 143.7 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.002994/1.171, allocations: 0.613 MB / 0.7235 GB, free: 143.7 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 35 * Number of states: 31 (inertia17.phi,inertia17.w,elastoBacklash2.phi_rel,elastoBacklash2.w_rel,inertia14.phi,inertia14.w,constantSpeed.phi,position.phi,position.w,speed.phi,speed.w,inertia13.phi,inertia13.w,accelerate.phi,accelerate.w,gear2_1.phi_rel,gear2_1.w_rel,relativeStates.phi_rel,relativeStates.w_rel,inertia2.phi,inertia2.w,damper.phi_rel,damper.w_rel,springDamper.phi_rel,springDamper.w_rel,elastoBacklash.phi_rel,elastoBacklash.w_rel,clutch.phi_rel,clutch.w_rel,inertia6.phi,inertia6.w) * Number of discrete variables: 24 (gear2_1.lossyGear.tau_aPos,gear2_1.lossyGear.startForward,gear2_1.lossyGear.startBackward,gear2_1.lossyGear.locked,gear2_1.lossyGear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,lossyGear.mode) * Number of discrete states: 11 (bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,lossyGear.mode,brake.mode,brake.startForward,brake.startBackward,clutch.mode,clutch.startBackward,clutch.startForward,gear2_1.lossyGear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (270): * Single equations (assignments): 263 * 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: 7 * 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%) 2} * Non-linear torn systems: 5 {2 21,1 5,1 6,2 23,1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.009509/1.181, allocations: 8.237 MB / 0.7316 GB, free: 139.3 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.006195/1.187, allocations: 2.892 MB / 0.7344 GB, free: 139 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.28e-05/1.187, allocations: 3.781 kB / 0.7344 GB, free: 139 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.005371/1.192, allocations: 2.506 MB / 0.7368 GB, free: 138.5 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002711/1.195, allocations: 249 kB / 0.7371 GB, free: 138.5 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01227/1.207, allocations: 5.879 MB / 0.7428 GB, free: 136.2 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001294/1.209, allocations: 1.588 MB / 0.7444 GB, free: 135.5 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.001488/1.21, allocations: 300.5 kB / 0.7446 GB, free: 135.4 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001204/1.211, allocations: 0.8613 MB / 0.7455 GB, free: 134.8 MB / 0.5105 GB Notification: Performance of SimCode: time 9.42e-07/1.211, allocations: 1.969 kB / 0.7455 GB, free: 134.8 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07458/1.286, allocations: 50.46 MB / 0.7948 GB, free: 112 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001191/1.286, allocations: 138.3 kB / 0.7949 GB, free: 111.8 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.027/5.314, allocations: 0 / 0.7949 GB, free: 111.8 MB / 0.5105 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.AllComponents.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.AllComponents.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.AllComponents.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.AllComponents.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Rotational.AllComponents_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Rotational_AllComponents_fmu --startTime=0 --stopTime=0.9 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Rotational_AllComponents.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.AllComponents.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Rotational.AllComponents_res.mat does not exist to compare? outputFormat=mat