Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.AllComponents.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.AllComponents,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_AllComponents",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.AllComponents,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_AllComponents",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007803/0.0007803, allocations: 100.1 kB / 17 MB, free: 6.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008622/0.0008623, allocations: 191.1 kB / 17.9 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.376/1.376, allocations: 227.4 MB / 246 MB, free: 10.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2406/0.2406, allocations: 45.91 MB / 344.1 MB, free: 12 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002665/0.0002666, allocations: 11.98 kB / 418.2 MB, free: 20.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.138/0.1383, allocations: 63.46 MB / 481.6 MB, free: 5.254 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.AllComponents): time 0.009548/0.1479, allocations: 9.065 MB / 490.7 MB, free: 12.15 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007709/0.1557, allocations: 3.305 MB / 494 MB, free: 8.844 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002129/0.1579, allocations: 47.81 kB / 494 MB, free: 8.797 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00101/0.1589, allocations: 289.7 kB / 494.3 MB, free: 8.512 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002605/0.1615, allocations: 0.7709 MB / 495.1 MB, free: 7.734 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002856/0.1644, allocations: 0.7177 MB / 495.8 MB, free: 7.016 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005836/0.1702, allocations: 3.247 MB / 499.1 MB, free: 3.754 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001287/0.1715, allocations: 0.6827 MB / 499.7 MB, free: 3.043 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002519/0.174, allocations: 1.238 MB / 0.4892 GB, free: 1.801 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002118/0.1762, allocations: 1.452 MB / 0.4907 GB, free: 352 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003427/0.1765, allocations: 148 kB / 0.4908 GB, free: 204 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008029/0.1773, allocations: 264 kB / 0.491 GB, free: 15.94 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005716/0.1779, allocations: 0.5643 MB / 0.4916 GB, free: 15.38 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006284/0.1786, allocations: 476.4 kB / 0.4921 GB, free: 14.9 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002406/0.181, allocations: 2.587 MB / 0.4946 GB, free: 12.31 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.153e-06/0.181, allocations: 0 / 0.4946 GB, free: 12.31 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.181, allocations: 4 kB / 0.4946 GB, free: 12.3 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.034e-05/0.1811, allocations: 0 / 0.4946 GB, free: 12.3 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 586 * Number of variables: 586 Notification: Performance of Generate backend data structure: time 0.006267/0.1873, allocations: 2.808 MB / 0.4973 GB, free: 9.434 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.593e-05/0.1874, allocations: 12.56 kB / 0.4973 GB, free: 9.422 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004439/0.1879, allocations: 328.9 kB / 0.4977 GB, free: 9.09 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001639/0.1895, allocations: 448.5 kB / 0.4981 GB, free: 8.648 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001865/0.1914, allocations: 1.136 MB / 0.4992 GB, free: 7.453 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009411/0.1923, allocations: 0.5199 MB / 0.4997 GB, free: 6.887 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004374/0.1928, allocations: 259.6 kB / 0.4999 GB, free: 6.633 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0057/0.1985, allocations: 2.786 MB / 0.5027 GB, free: 3.75 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.106e-05/0.1986, allocations: 31.7 kB / 0.5027 GB, free: 3.719 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002252/0.1988, allocations: 92 kB / 0.5028 GB, free: 3.629 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.778e-05/0.1989, allocations: 56 kB / 0.5028 GB, free: 3.574 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006079/0.205, allocations: 2.84 MB / 0.5056 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.303/0.508, allocations: 7.717 MB / 0.5131 GB, free: 36.16 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005565/0.5137, allocations: 2.674 MB / 0.5158 GB, free: 34.9 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003795/0.5175, allocations: 1.481 MB / 0.5172 GB, free: 34.36 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003234/0.5178, allocations: 128.2 kB / 0.5173 GB, free: 34.26 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.821e-05/0.5179, allocations: 77.66 kB / 0.5174 GB, free: 34.19 MB / 382.1 MB Notification: Performance of pre-optimization done (n=287): time 5.581e-06/0.5179, allocations: 0 / 0.5174 GB, free: 34.19 MB / 382.1 MB Notification: Performance of matching and sorting (n=346): time 0.03559/0.5535, allocations: 15.5 MB / 0.5325 GB, free: 25.41 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001263/0.5537, allocations: 362 kB / 0.5329 GB, free: 25.02 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001723/0.5554, allocations: 1.233 MB / 0.5341 GB, free: 24.35 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004969/0.5559, allocations: 102.2 kB / 0.5342 GB, free: 24.27 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000538/0.5565, allocations: 0.759 MB / 0.5349 GB, free: 23.6 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008394/0.5573, allocations: 1.163 MB / 0.5361 GB, free: 22.58 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000168/0.5575, allocations: 67.56 kB / 0.5361 GB, free: 22.53 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001382/0.5576, allocations: 426.4 kB / 0.5365 GB, free: 22.13 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002218/0.5599, allocations: 1.167 MB / 0.5377 GB, free: 21.58 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002504/0.5624, allocations: 1.633 MB / 0.5393 GB, free: 20.34 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002392/0.5648, allocations: 1.202 MB / 0.5404 GB, free: 19.15 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.605e-05/0.5648, allocations: 4 kB / 0.5404 GB, free: 19.15 MB / 382.1 MB Notification: Performance of matching and sorting (n=422) (initialization): time 0.007219/0.572, allocations: 3.682 MB / 0.544 GB, free: 15.45 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.611e-05/0.5721, allocations: 8 kB / 0.544 GB, free: 15.44 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.842e-05/0.5721, allocations: 12 kB / 0.5441 GB, free: 15.43 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002309/0.5745, allocations: 1.07 MB / 0.5451 GB, free: 14.35 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002947/0.5774, allocations: 0.7919 MB / 0.5459 GB, free: 13.55 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008367/0.5858, allocations: 7.503 MB / 0.5532 GB, free: 5.723 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002933/0.5888, allocations: 331.6 kB / 0.5535 GB, free: 5.398 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000709/0.5895, allocations: 120 kB / 0.5536 GB, free: 5.281 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * 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 (347): * Single equations (assignments): 342 * 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 7,1 9,1 10} Notification: Performance of prepare postOptimizeDAE: time 0.002224/0.5918, allocations: 498 kB / 0.5541 GB, free: 4.785 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001173/0.593, allocations: 229.2 kB / 0.5543 GB, free: 4.559 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001493/0.5945, allocations: 0.6238 MB / 0.5549 GB, free: 3.922 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.023e-05/0.5945, allocations: 36 kB / 0.555 GB, free: 3.887 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.377e-05/0.5946, allocations: 4 kB / 0.555 GB, free: 3.883 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.003e-05/0.5946, allocations: 15.94 kB / 0.555 GB, free: 3.867 MB / 382.1 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.01928/0.6139, allocations: 8.32 MB / 0.5631 GB, free: 11.45 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.553e-05/0.614, allocations: 8 kB / 0.5631 GB, free: 11.44 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003282/0.6173, allocations: 0.7494 MB / 0.5639 GB, free: 10.69 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003108/0.6204, allocations: 1.05 MB / 0.5649 GB, free: 9.617 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007439/0.6212, allocations: 108.1 kB / 0.565 GB, free: 9.512 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01171/0.6329, allocations: 10.14 MB / 0.5749 GB, free: 14.76 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.37e-05/0.6329, allocations: 15.89 kB / 0.5749 GB, free: 14.74 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01454/0.6475, allocations: 6.273 MB / 0.581 GB, free: 8.266 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00169/0.6492, allocations: 0.5799 MB / 0.5816 GB, free: 7.664 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008826/0.6501, allocations: 87.98 kB / 0.5817 GB, free: 7.578 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002786/0.6529, allocations: 315.8 kB / 0.582 GB, free: 7.27 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001188/0.6541, allocations: 476.9 kB / 0.5824 GB, free: 6.805 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003887/0.6546, allocations: 123.9 kB / 0.5826 GB, free: 6.684 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001609/0.6562, allocations: 0.8269 MB / 0.5834 GB, free: 5.855 MB / 414.1 MB Notification: Performance of sort global known variables: time 5.71e-07/0.6562, allocations: 4 kB / 0.5834 GB, free: 5.852 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004187/0.6604, allocations: 0.7526 MB / 0.5841 GB, free: 5.102 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 32 (speed2.phi,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 (274): * Single equations (assignments): 267 * 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 6,1 8,2 23,1 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.01492/0.6753, allocations: 7.242 MB / 0.5912 GB, free: 13.79 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.008212/0.6836, allocations: 3.593 MB / 0.5947 GB, free: 10.15 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.37e-05/0.6836, allocations: 4 kB / 0.5947 GB, free: 10.15 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007876/0.6915, allocations: 2.998 MB / 0.5976 GB, free: 7.094 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004462/0.696, allocations: 388.7 kB / 0.598 GB, free: 6.719 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0395/0.7355, allocations: 17.74 MB / 0.6153 GB, free: 3.926 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001974/0.7376, allocations: 1.61 MB / 0.6169 GB, free: 2.277 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002104/0.7397, allocations: 358 kB / 0.6172 GB, free: 1.926 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001789/0.7415, allocations: 0.9444 MB / 0.6181 GB, free: 0.9805 MB / 446.1 MB Notification: Performance of SimCode: time 1.593e-06/0.7415, allocations: 0 / 0.6181 GB, free: 0.9805 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1117/0.8532, allocations: 56.46 MB / 0.6733 GB, free: 8.875 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002752/0.8535, allocations: 254.3 kB / 0.6735 GB, free: 8.562 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.751/4.605, allocations: 0 / 0.6735 GB, free: 8.562 MB / 0.4981 GB (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.AllComponents.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.AllComponents.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.AllComponents.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.AllComponents.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Rotational.AllComponents_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Rotational_AllComponents_fmu --startTime=0 --stopTime=0.9 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Rotational_AllComponents.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.AllComponents.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Rotational.AllComponents_res.mat does not exist to compare? outputFormat=mat