Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.AllComponents.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.AllComponents,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_AllComponents",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.AllComponents,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_AllComponents",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.0024/0.002405, allocations: 188.3 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.168/2.168, allocations: 205.4 MB / 222.5 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.001148/0.001147, allocations: 94.84 kB / 270.9 MB, free: 13.36 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.2949/0.2949, allocations: 43.56 MB / 362.7 MB, free: 11.32 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004634/0.0004639, allocations: 12 kB / 431.5 MB, free: 20.18 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1267/0.1272, allocations: 58.85 MB / 490.3 MB, free: 9.25 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.AllComponents): time 0.0137/0.141, allocations: 7.627 MB / 497.9 MB, free: 1.59 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.009287/0.1503, allocations: 3.204 MB / 0.4894 GB, free: 14.38 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002067/0.1524, allocations: 39.81 kB / 0.4894 GB, free: 14.34 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001456/0.1539, allocations: 234.2 kB / 0.4897 GB, free: 14.11 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004169/0.1582, allocations: 0.8334 MB / 0.4905 GB, free: 13.27 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003612/0.1618, allocations: 0.7097 MB / 0.4912 GB, free: 12.56 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.005589/0.1674, allocations: 2.111 MB / 0.4932 GB, free: 10.45 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001683/0.1692, allocations: 0.638 MB / 0.4938 GB, free: 9.789 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002964/0.1722, allocations: 1.133 MB / 0.495 GB, free: 8.652 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00333/0.1756, allocations: 1.323 MB / 0.4962 GB, free: 7.324 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001098/0.1767, allocations: 140 kB / 0.4964 GB, free: 7.188 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001802/0.1786, allocations: 223.8 kB / 0.4966 GB, free: 6.969 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001361/0.18, allocations: 0.5177 MB / 0.4971 GB, free: 6.449 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001193/0.1812, allocations: 452.5 kB / 0.4975 GB, free: 6 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004976/0.1862, allocations: 2.349 MB / 0.4998 GB, free: 3.645 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.1863, allocations: 0 / 0.4998 GB, free: 3.645 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.477e-06/0.1863, allocations: 0 / 0.4998 GB, free: 3.645 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001401/0.1865, allocations: 0 / 0.4998 GB, free: 3.645 MB / 346.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.01182/0.1983, allocations: 2.62 MB / 0.5024 GB, free: 0.9609 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.294e-05/0.1984, allocations: 16.03 kB / 0.5024 GB, free: 0.9453 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001204/0.1996, allocations: 303.8 kB / 0.5027 GB, free: 0.6367 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001693/0.2013, allocations: 300.8 kB / 0.503 GB, free: 348 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003607/0.205, allocations: 1.068 MB / 0.504 GB, free: 15.21 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002033/0.2071, allocations: 0.504 MB / 0.5045 GB, free: 14.66 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009823/0.2081, allocations: 243.7 kB / 0.5047 GB, free: 14.42 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01031/0.2184, allocations: 2.62 MB / 0.5073 GB, free: 11.71 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002051/0.2187, allocations: 35.61 kB / 0.5073 GB, free: 11.67 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004187/0.2191, allocations: 84 kB / 0.5074 GB, free: 11.59 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.611e-05/0.2192, allocations: 55.95 kB / 0.5075 GB, free: 11.54 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01204/0.2313, allocations: 2.758 MB / 0.5102 GB, free: 8.773 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02376/0.2551, allocations: 7.008 MB / 0.517 GB, free: 1.652 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3341/0.5892, allocations: 2.554 MB / 0.5195 GB, free: 41.4 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005487/0.5898, allocations: 123.7 kB / 0.5196 GB, free: 41.3 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.416e-05/0.5899, allocations: 73.75 kB / 0.5197 GB, free: 41.27 MB / 362.7 MB Notification: Performance of pre-optimization done (n=275): time 7.344e-06/0.5899, allocations: 0 / 0.5197 GB, free: 41.27 MB / 362.7 MB Notification: Performance of matching and sorting (n=333): time 0.05615/0.6461, allocations: 14.58 MB / 0.5339 GB, free: 34.34 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001509/0.6463, allocations: 323.9 kB / 0.5342 GB, free: 33.99 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002728/0.649, allocations: 1.134 MB / 0.5353 GB, free: 33.57 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007484/0.6498, allocations: 95.44 kB / 0.5354 GB, free: 33.49 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006605/0.6505, allocations: 0.6829 MB / 0.5361 GB, free: 32.91 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001723/0.6522, allocations: 1.118 MB / 0.5372 GB, free: 32.04 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004237/0.6527, allocations: 66.38 kB / 0.5373 GB, free: 31.98 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002464/0.653, allocations: 435.1 kB / 0.5377 GB, free: 31.61 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005053/0.658, allocations: 1.141 MB / 0.5388 GB, free: 31.23 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005414/0.6635, allocations: 1.559 MB / 0.5403 GB, free: 30.44 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004774/0.6683, allocations: 1.167 MB / 0.5414 GB, free: 29.95 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.718e-05/0.6684, allocations: 3.531 kB / 0.5415 GB, free: 29.95 MB / 362.7 MB Notification: Performance of matching and sorting (n=407) (initialization): time 0.01343/0.6819, allocations: 3.513 MB / 0.5449 GB, free: 28.64 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.864e-05/0.682, allocations: 7.25 kB / 0.5449 GB, free: 28.64 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.179e-05/0.682, allocations: 10.97 kB / 0.5449 GB, free: 28.64 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004042/0.686, allocations: 1.212 MB / 0.5461 GB, free: 28.23 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005695/0.6918, allocations: 0.7445 MB / 0.5468 GB, free: 27.61 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01363/0.7055, allocations: 7.659 MB / 0.5543 GB, free: 19.81 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004064/0.7096, allocations: 295.8 kB / 0.5546 GB, free: 19.52 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009995/0.7106, allocations: 116 kB / 0.5547 GB, free: 19.41 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * 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,bearingFriction.free,$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) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (338): * Single equations (assignments): 333 * 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: 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.002688/0.7134, allocations: 481.2 kB / 0.5551 GB, free: 18.93 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001382/0.7148, allocations: 209.5 kB / 0.5553 GB, free: 18.72 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002976/0.7178, allocations: 0.6189 MB / 0.5559 GB, free: 18.09 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.549e-05/0.7179, allocations: 36 kB / 0.556 GB, free: 18.05 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.945e-05/0.718, allocations: 4 kB / 0.556 GB, free: 18.05 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.277e-05/0.7181, allocations: 15.94 kB / 0.556 GB, free: 18.04 MB / 362.7 MB 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.03056/0.7487, allocations: 7.957 MB / 0.5638 GB, free: 9.977 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.922e-05/0.7488, allocations: 12.03 kB / 0.5638 GB, free: 9.965 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006097/0.7549, allocations: 0.7057 MB / 0.5645 GB, free: 9.262 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004189/0.7592, allocations: 1.203 MB / 0.5656 GB, free: 8.039 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006977/0.7599, allocations: 99.92 kB / 0.5657 GB, free: 7.941 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01705/0.777, allocations: 10.29 MB / 0.5758 GB, free: 13.05 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.451e-05/0.7771, allocations: 11.94 kB / 0.5758 GB, free: 13.04 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02364/0.8007, allocations: 6.623 MB / 0.5823 GB, free: 6.102 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002163/0.8029, allocations: 0.5294 MB / 0.5828 GB, free: 5.551 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007925/0.8038, allocations: 87.94 kB / 0.5829 GB, free: 5.465 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004432/0.8082, allocations: 299.8 kB / 0.5832 GB, free: 5.172 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001939/0.8102, allocations: 445 kB / 0.5836 GB, free: 4.734 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000539/0.8108, allocations: 123.9 kB / 0.5837 GB, free: 4.613 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001899/0.8127, allocations: 0.7734 MB / 0.5844 GB, free: 3.836 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.856e-06/0.8127, allocations: 0 / 0.5844 GB, free: 3.836 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.004686/0.8174, allocations: 0.7291 MB / 0.5852 GB, free: 3.109 MB / 378.7 MB 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,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,position.phi,position.w,speed.phi,speed.w,inertia13.phi,inertia13.w,accelerate.phi,accelerate.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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (267): * Single equations (assignments): 260 * 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.0261/0.8436, allocations: 9.577 MB / 0.5945 GB, free: 9.191 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01343/0.8571, allocations: 3.509 MB / 0.5979 GB, free: 5.66 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.426e-05/0.8572, allocations: 96 / 0.5979 GB, free: 5.66 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01092/0.8681, allocations: 2.826 MB / 0.6007 GB, free: 2.777 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003842/0.872, allocations: 303.6 kB / 0.601 GB, free: 2.492 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06005/0.9321, allocations: 22.7 MB / 0.6232 GB, free: 10.76 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003551/0.9358, allocations: 1.597 MB / 0.6247 GB, free: 9.133 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003878/0.9397, allocations: 0.8936 MB / 0.6256 GB, free: 8.238 MB / 426.7 MB Notification: Performance of SimCode: time 1.353e-06/0.9398, allocations: 0 / 0.6256 GB, free: 8.238 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.217/5.157, allocations: 79.72 MB / 0.7034 GB, free: 8.402 MB / 0.4949 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.AllComponents.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.AllComponents.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.AllComponents.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.AllComponents.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.AllComponents_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_AllComponents_fmu --startTime=0 --stopTime=0.9 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_AllComponents.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.AllComponents.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.AllComponents_res.mat does not exist to compare? outputFormat=mat