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.00227/0.00227, allocations: 182.3 kB / 13.66 MB, free: 1.664 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.142/2.142, allocations: 205.2 MB / 219.4 MB, free: 14.27 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.001115/0.001114, allocations: 94.67 kB / 267.5 MB, free: 14.1 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.2864/0.2864, allocations: 43.49 MB / 359.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 5.331e-05/5.35e-05, allocations: 4 kB / 425.4 MB, free: 23.28 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1247/0.1248, allocations: 58.85 MB / 484.2 MB, free: 12.38 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6748/0.7997, allocations: 105.1 MB / 0.5755 GB, free: 14.65 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002523/0.8, allocations: 67.25 kB / 0.5756 GB, free: 14.62 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.238/1.038, allocations: 49.25 MB / 0.6237 GB, free: 5.004 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.535e-06/1.038, allocations: 0 / 0.6237 GB, free: 5.004 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.000189/1.038, allocations: 52 kB / 0.6237 GB, free: 4.953 MB / 426.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.01161/1.05, allocations: 2.352 MB / 0.626 GB, free: 2.684 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.841e-05/1.05, allocations: 8.031 kB / 0.626 GB, free: 2.676 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001239/1.051, allocations: 311.6 kB / 0.6263 GB, free: 2.5 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001938/1.053, allocations: 300.9 kB / 0.6266 GB, free: 2.203 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003447/1.057, allocations: 0.9876 MB / 0.6276 GB, free: 1.352 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00147/1.058, allocations: 461 kB / 0.628 GB, free: 0.9336 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001179/1.059, allocations: 235.9 kB / 0.6282 GB, free: 0.7773 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008931/1.068, allocations: 2.348 MB / 0.6305 GB, free: 14.43 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000241/1.069, allocations: 47.58 kB / 0.6306 GB, free: 14.38 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004422/1.069, allocations: 84 kB / 0.6306 GB, free: 14.3 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.292e-05/1.069, allocations: 52 kB / 0.6307 GB, free: 14.25 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008068/1.077, allocations: 2.197 MB / 0.6328 GB, free: 12.05 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02354/1.101, allocations: 6.759 MB / 0.6394 GB, free: 5.188 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006719/1.108, allocations: 2.251 MB / 0.6416 GB, free: 2.805 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004207/1.112, allocations: 1.213 MB / 0.6428 GB, free: 1.574 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006312/1.113, allocations: 127.1 kB / 0.6429 GB, free: 1.43 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.678e-05/1.113, allocations: 68.38 kB / 0.643 GB, free: 1.352 MB / 442.7 MB Notification: Performance of pre-optimization done (n=280): time 6.772e-06/1.113, allocations: 4 kB / 0.643 GB, free: 1.348 MB / 442.7 MB Notification: Performance of matching and sorting (n=338): time 0.03355/1.146, allocations: 11.11 MB / 0.6539 GB, free: 5.746 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002159/1.147, allocations: 325.4 kB / 0.6542 GB, free: 5.363 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002202/1.149, allocations: 0.9081 MB / 0.6551 GB, free: 4.445 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000887/1.15, allocations: 97.69 kB / 0.6552 GB, free: 4.344 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007574/1.151, allocations: 0.6577 MB / 0.6558 GB, free: 3.68 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00206/1.153, allocations: 1.128 MB / 0.6569 GB, free: 2.535 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005318/1.153, allocations: 71.98 kB / 0.657 GB, free: 2.465 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003335/1.154, allocations: 433.5 kB / 0.6574 GB, free: 2.031 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004064/1.158, allocations: 1.006 MB / 0.6584 GB, free: 1.023 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004451/1.162, allocations: 1.424 MB / 0.6598 GB, free: 15.48 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003615/1.166, allocations: 1.013 MB / 0.6607 GB, free: 14.48 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.82e-05/1.166, allocations: 4 kB / 0.6607 GB, free: 14.47 MB / 474.7 MB Notification: Performance of matching and sorting (n=407) (initialization): time 0.01134/1.177, allocations: 3.209 MB / 0.6639 GB, free: 11.24 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.342e-05/1.177, allocations: 12 kB / 0.6639 GB, free: 11.23 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.762e-05/1.177, allocations: 8 kB / 0.6639 GB, free: 11.22 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003982/1.181, allocations: 1.022 MB / 0.6649 GB, free: 10.18 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006174/1.188, allocations: 0.7529 MB / 0.6656 GB, free: 9.43 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01451/1.202, allocations: 7.391 MB / 0.6729 GB, free: 1.695 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004359/1.207, allocations: 295.9 kB / 0.6731 GB, free: 1.406 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007541/1.207, allocations: 124 kB / 0.6733 GB, free: 1.285 MB / 474.7 MB 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.0009777/1.208, allocations: 304.7 kB / 0.6735 GB, free: 0.9805 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009263/1.209, allocations: 217.3 kB / 0.6737 GB, free: 0.7656 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008004/1.217, allocations: 2.285 MB / 0.676 GB, free: 14.45 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.866e-05/1.217, allocations: 36 kB / 0.676 GB, free: 14.41 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.361e-05/1.217, allocations: 4 kB / 0.676 GB, free: 14.41 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.018e-05/1.218, allocations: 15.94 kB / 0.676 GB, free: 14.39 MB / 490.7 MB 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.0266/1.244, allocations: 7.355 MB / 0.6832 GB, free: 6.84 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.924e-05/1.244, allocations: 12 kB / 0.6832 GB, free: 6.828 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007349/1.252, allocations: 0.7336 MB / 0.6839 GB, free: 6.094 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004234/1.256, allocations: 1.017 MB / 0.6849 GB, free: 5.055 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008964/1.257, allocations: 99.92 kB / 0.685 GB, free: 4.957 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01745/1.274, allocations: 10.02 MB / 0.6948 GB, free: 10.31 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.845e-05/1.274, allocations: 19.92 kB / 0.6948 GB, free: 10.29 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01783/1.292, allocations: 5.756 MB / 0.7005 GB, free: 4.203 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002291/1.295, allocations: 0.5294 MB / 0.701 GB, free: 3.652 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009615/1.296, allocations: 84 kB / 0.7011 GB, free: 3.57 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004768/1.3, allocations: 299.8 kB / 0.7013 GB, free: 3.277 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001989/1.302, allocations: 457.1 kB / 0.7018 GB, free: 2.832 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006293/1.303, allocations: 131.9 kB / 0.7019 GB, free: 2.703 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001733/1.305, allocations: 0.6973 MB / 0.7026 GB, free: 2 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.002e-06/1.305, allocations: 0 / 0.7026 GB, free: 2 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.004795/1.31, allocations: 0.7343 MB / 0.7033 GB, free: 1.266 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 37 * 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.3492/1.659, allocations: 8.844 MB / 0.7119 GB, free: 140.3 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.009751/1.669, allocations: 3.093 MB / 0.715 GB, free: 140 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.533e-05/1.669, allocations: 1.375 kB / 0.715 GB, free: 140 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.008428/1.677, allocations: 2.539 MB / 0.7174 GB, free: 139.5 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003854/1.681, allocations: 312 kB / 0.7177 GB, free: 139.5 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0215/1.703, allocations: 6.23 MB / 0.7238 GB, free: 137.4 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002144/1.705, allocations: 1.592 MB / 0.7254 GB, free: 136.6 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002618/1.708, allocations: 0.8832 MB / 0.7262 GB, free: 136.6 MB / 0.4948 GB Notification: Performance of SimCode: time 2.786e-06/1.708, allocations: 1.031 kB / 0.7262 GB, free: 136.6 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.884/5.591, allocations: 80.17 MB / 0.8045 GB, free: 86.6 MB / 0.4948 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