Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.conf.json 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/Complex 4.0.0+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/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 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestFriction,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_TestFriction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestFriction,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_TestFriction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008322/0.0008323, allocations: 97.41 kB / 15.7 MB, free: 468 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009165/0.0009166, allocations: 175.9 kB / 16.58 MB, free: 5.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.406/1.406, allocations: 205.4 MB / 222.7 MB, free: 5.793 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3402/0.3402, allocations: 43.55 MB / 314.6 MB, free: 8.93 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005059/0.0005059, allocations: 12 kB / 384 MB, free: 8.184 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.135/0.1355, allocations: 58.87 MB / 442.9 MB, free: 13.22 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.003929/0.1395, allocations: 3.383 MB / 446.3 MB, free: 9.816 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002383/0.1419, allocations: 1.228 MB / 447.5 MB, free: 8.582 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003328/0.1423, allocations: 11.94 kB / 447.5 MB, free: 8.57 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002859/0.1426, allocations: 83.33 kB / 447.6 MB, free: 8.488 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003783/0.143, allocations: 174.7 kB / 447.7 MB, free: 8.316 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006056/0.1436, allocations: 263.6 kB / 448 MB, free: 8.059 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009011/0.1445, allocations: 0.9014 MB / 448.9 MB, free: 7.148 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002634/0.1447, allocations: 140.9 kB / 449 MB, free: 7.004 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004903/0.1452, allocations: 386.6 kB / 449.4 MB, free: 6.625 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005111/0.1458, allocations: 434.4 kB / 449.8 MB, free: 6.199 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.457e-05/0.1459, allocations: 43.94 kB / 449.9 MB, free: 6.156 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001998/0.1461, allocations: 87.89 kB / 450 MB, free: 6.07 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000183/0.1463, allocations: 151.4 kB / 450.1 MB, free: 5.922 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001366/0.1464, allocations: 157.3 kB / 450.3 MB, free: 5.762 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005975/0.147, allocations: 0.6431 MB / 450.9 MB, free: 5.117 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.733e-06/0.147, allocations: 7.922 kB / 450.9 MB, free: 5.109 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.147, allocations: 0 / 450.9 MB, free: 5.109 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.628e-06/0.1471, allocations: 0 / 450.9 MB, free: 5.109 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: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.001858/0.1489, allocations: 1.001 MB / 451.9 MB, free: 4.055 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.427e-05/0.149, allocations: 8.031 kB / 451.9 MB, free: 4.047 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001271/0.1491, allocations: 98.52 kB / 452 MB, free: 3.941 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001376/0.1492, allocations: 79.06 kB / 452.1 MB, free: 3.863 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005476/0.1498, allocations: 424.6 kB / 452.5 MB, free: 3.41 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.439e-05/0.1499, allocations: 45.3 kB / 452.6 MB, free: 3.367 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001067/0.15, allocations: 68 kB / 452.6 MB, free: 3.301 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001398/0.1514, allocations: 0.8333 MB / 453.5 MB, free: 2.434 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.174e-05/0.1514, allocations: 7.906 kB / 453.5 MB, free: 2.426 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.665e-05/0.1515, allocations: 27.95 kB / 453.5 MB, free: 2.398 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.402e-05/0.1515, allocations: 16 kB / 453.5 MB, free: 2.383 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001511/0.153, allocations: 0.7971 MB / 454.3 MB, free: 1.586 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2223/0.3754, allocations: 2.626 MB / 456.9 MB, free: 44.75 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001157/0.3766, allocations: 0.6458 MB / 457.6 MB, free: 44.65 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006174/0.3772, allocations: 386.8 kB / 458 MB, free: 44.62 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.194e-05/0.3773, allocations: 9.188 kB / 458 MB, free: 44.62 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.51e-05/0.3773, allocations: 52.77 kB / 458 MB, free: 44.58 MB / 382.1 MB Notification: Performance of pre-optimization done (n=72): time 2.515e-06/0.3773, allocations: 0 / 458 MB, free: 44.58 MB / 382.1 MB Notification: Performance of matching and sorting (n=76): time 0.00632/0.3836, allocations: 3.735 MB / 461.8 MB, free: 43.06 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.139e-05/0.3837, allocations: 137.1 kB / 461.9 MB, free: 42.91 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004322/0.3842, allocations: 425.5 kB / 462.3 MB, free: 42.8 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.494e-05/0.3842, allocations: 51.92 kB / 462.4 MB, free: 42.76 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000152/0.3844, allocations: 276.9 kB / 462.6 MB, free: 42.6 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001748/0.3846, allocations: 268.2 kB / 462.9 MB, free: 42.45 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.444e-05/0.3846, allocations: 20.14 kB / 462.9 MB, free: 42.45 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001012/0.3847, allocations: 364.8 kB / 463.3 MB, free: 42.14 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006636/0.3854, allocations: 402.5 kB / 463.7 MB, free: 42.13 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007411/0.3862, allocations: 0.5534 MB / 464.2 MB, free: 41.96 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006757/0.3868, allocations: 349.6 kB / 464.6 MB, free: 41.96 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.3869, allocations: 0 / 464.6 MB, free: 41.96 MB / 382.1 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.002232/0.3891, allocations: 1.285 MB / 465.8 MB, free: 41.81 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.234e-05/0.3891, allocations: 6.219 kB / 465.8 MB, free: 41.81 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.227e-05/0.3892, allocations: 8.797 kB / 465.9 MB, free: 41.81 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001168/0.3903, allocations: 0.7575 MB / 466.6 MB, free: 41.75 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004744/0.3908, allocations: 157.5 kB / 466.8 MB, free: 41.74 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001623/0.3924, allocations: 2.7 MB / 469.5 MB, free: 39.64 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007722/0.3932, allocations: 188.7 kB / 469.6 MB, free: 39.62 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.923e-05/0.3933, allocations: 36.67 kB / 469.7 MB, free: 39.62 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,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,bearingFriction.free,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 87 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,1 7,1 6,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0003207/0.3936, allocations: 218.8 kB / 469.9 MB, free: 39.49 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001628/0.3938, allocations: 70.03 kB / 470 MB, free: 39.45 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002256/0.394, allocations: 88.42 kB / 470.1 MB, free: 39.44 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.654e-06/0.3941, allocations: 6.625 kB / 470.1 MB, free: 39.44 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.361e-05/0.3941, allocations: 3.188 kB / 470.1 MB, free: 39.44 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.326e-06/0.3941, allocations: 3.281 kB / 470.1 MB, free: 39.44 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003365/0.3975, allocations: 2.193 MB / 472.3 MB, free: 38.63 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.358e-06/0.3975, allocations: 0 / 472.3 MB, free: 38.63 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004736/0.398, allocations: 121 kB / 472.4 MB, free: 38.62 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001007/0.399, allocations: 0.7178 MB / 473.1 MB, free: 38.41 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.516e-05/0.399, allocations: 27.55 kB / 473.1 MB, free: 38.39 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001553/0.4006, allocations: 2.65 MB / 475.8 MB, free: 36.1 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.4006, allocations: 0 / 475.8 MB, free: 36.1 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002648/0.4033, allocations: 1.82 MB / 477.6 MB, free: 35.21 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002627/0.4036, allocations: 225.4 kB / 477.8 MB, free: 35.05 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000124/0.4037, allocations: 25.97 kB / 477.8 MB, free: 35.04 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007548/0.4044, allocations: 174.1 kB / 478 MB, free: 35.02 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002813/0.4047, allocations: 165.8 kB / 478.2 MB, free: 35 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.828e-05/0.4048, allocations: 37.33 kB / 478.2 MB, free: 34.99 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002458/0.4051, allocations: 287.8 kB / 478.5 MB, free: 34.85 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4051, allocations: 3.469 kB / 478.5 MB, free: 34.85 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007588/0.4058, allocations: 198 kB / 478.7 MB, free: 34.82 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 (inertia4.phi,inertia4.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,inertia2.phi,inertia2.w,clutch.phi_rel,clutch.w_rel,inertia1.w,brake.phi,inertia.w,bearingFriction.phi) * Number of discrete variables: 18 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 11 (bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,brake.mode,brake.startForward,brake.startBackward,clutch.mode,clutch.startForward,clutch.startBackward,oneWayClutch.stuck,oneWayClutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 49 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,1 7,1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.002934/0.4088, allocations: 2.393 MB / 481.1 MB, free: 33.39 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001776/0.4106, allocations: 0.9793 MB / 482.1 MB, free: 33.08 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.367e-06/0.4106, allocations: 4.188 kB / 482.1 MB, free: 33.08 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001006/0.4116, allocations: 0.5166 MB / 482.6 MB, free: 32.92 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008747/0.4125, allocations: 100.1 kB / 482.7 MB, free: 32.88 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009234/0.4217, allocations: 5.47 MB / 488.1 MB, free: 30.06 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000436/0.4222, allocations: 0.9077 MB / 489.1 MB, free: 29.35 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003281/0.4225, allocations: 62.23 kB / 489.1 MB, free: 29.33 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002805/0.4228, allocations: 206.6 kB / 489.3 MB, free: 29.18 MB / 382.1 MB Notification: Performance of SimCode: time 1.302e-06/0.4228, allocations: 1.031 kB / 489.3 MB, free: 29.18 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04306/0.4659, allocations: 19.11 MB / 0.4965 GB, free: 24.12 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000142/0.4661, allocations: 197.8 kB / 0.4967 GB, free: 23.89 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.222/2.688, allocations: 3.938 kB / 0.4967 GB, free: 23.88 MB / 382.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Rotational_TestFriction_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Rotational_TestFriction.fmu > ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction_res.mat does not exist to compare? outputFormat=mat