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.001077/0.001077, allocations: 95.58 kB / 15.69 MB, free: 476 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.001272/0.001272, allocations: 173.4 kB / 16.57 MB, free: 6.852 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.814/1.814, allocations: 205.4 MB / 222.7 MB, free: 5.672 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.4799/0.4799, allocations: 43.55 MB / 314.5 MB, free: 8.715 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.0005638/0.0005638, allocations: 12 kB / 384 MB, free: 7.965 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1503/0.1509, allocations: 58.86 MB / 442.8 MB, free: 13 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.004095/0.155, allocations: 3.17 MB / 446 MB, free: 9.812 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002338/0.1574, allocations: 1.279 MB / 447.3 MB, free: 8.527 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002184/0.1576, allocations: 11.94 kB / 447.3 MB, free: 8.516 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002175/0.1579, allocations: 71.45 kB / 447.4 MB, free: 8.445 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005034/0.1584, allocations: 243.3 kB / 447.6 MB, free: 8.207 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005594/0.159, allocations: 263.5 kB / 447.9 MB, free: 7.949 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007152/0.1597, allocations: 0.6339 MB / 448.5 MB, free: 7.312 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000269/0.16, allocations: 144.9 kB / 448.6 MB, free: 7.164 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004792/0.1605, allocations: 382.8 kB / 449 MB, free: 6.789 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005151/0.161, allocations: 430.3 kB / 449.4 MB, free: 6.367 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.502e-05/0.1611, allocations: 40 kB / 449.5 MB, free: 6.328 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001974/0.1613, allocations: 83.95 kB / 449.6 MB, free: 6.246 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002098/0.1615, allocations: 155.4 kB / 449.7 MB, free: 6.094 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001445/0.1616, allocations: 145.3 kB / 449.8 MB, free: 5.945 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006385/0.1623, allocations: 0.6469 MB / 450.5 MB, free: 5.297 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.526e-06/0.1623, allocations: 0 / 450.5 MB, free: 5.297 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.1623, allocations: 0 / 450.5 MB, free: 5.297 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.508e-06/0.1623, allocations: 0 / 450.5 MB, free: 5.297 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.002159/0.1645, allocations: 1.005 MB / 451.5 MB, free: 4.238 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.516e-05/0.1645, allocations: 8.031 kB / 451.5 MB, free: 4.23 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001423/0.1647, allocations: 106.5 kB / 451.6 MB, free: 4.117 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001341/0.1648, allocations: 79.06 kB / 451.7 MB, free: 4.039 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005996/0.1654, allocations: 416.7 kB / 452.1 MB, free: 3.594 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.778e-05/0.1655, allocations: 45.31 kB / 452.1 MB, free: 3.551 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001107/0.1656, allocations: 60 kB / 452.2 MB, free: 3.492 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00142/0.167, allocations: 0.8333 MB / 453 MB, free: 2.625 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.147e-05/0.1671, allocations: 11.84 kB / 453 MB, free: 2.613 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.343e-05/0.1672, allocations: 27.95 kB / 453.1 MB, free: 2.586 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.137e-05/0.1672, allocations: 20 kB / 453.1 MB, free: 2.566 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001673/0.1689, allocations: 0.7971 MB / 453.9 MB, free: 1.77 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2692/0.4381, allocations: 2.627 MB / 456.5 MB, free: 44.84 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001357/0.4395, allocations: 0.6462 MB / 457.2 MB, free: 44.74 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.617e-05/0.4396, allocations: 10.38 kB / 457.2 MB, free: 44.74 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.023e-05/0.4396, allocations: 44.53 kB / 457.2 MB, free: 44.7 MB / 382.1 MB Notification: Performance of pre-optimization done (n=72): time 2.906e-06/0.4396, allocations: 4.984 kB / 457.2 MB, free: 44.7 MB / 382.1 MB Notification: Performance of matching and sorting (n=76): time 0.009165/0.4488, allocations: 3.716 MB / 460.9 MB, free: 43.2 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.046e-05/0.4489, allocations: 145.3 kB / 461.1 MB, free: 43.04 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005835/0.4495, allocations: 423.4 kB / 461.5 MB, free: 42.93 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.22e-05/0.4496, allocations: 47.67 kB / 461.5 MB, free: 42.9 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001977/0.4498, allocations: 286.4 kB / 461.8 MB, free: 42.73 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002227/0.45, allocations: 270.6 kB / 462.1 MB, free: 42.58 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.464e-05/0.4501, allocations: 22.48 kB / 462.1 MB, free: 42.58 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001131/0.4502, allocations: 369.3 kB / 462.5 MB, free: 42.27 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009285/0.4512, allocations: 400.9 kB / 462.9 MB, free: 42.26 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00106/0.4522, allocations: 0.558 MB / 463.4 MB, free: 42.09 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008444/0.4531, allocations: 343.9 kB / 463.8 MB, free: 42.09 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.17e-06/0.4531, allocations: 2.938 kB / 463.8 MB, free: 42.09 MB / 382.1 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.003352/0.4565, allocations: 1.276 MB / 465 MB, free: 41.95 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.678e-05/0.4565, allocations: 5.375 kB / 465 MB, free: 41.95 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.653e-05/0.4565, allocations: 5.719 kB / 465 MB, free: 41.95 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001656/0.4582, allocations: 0.7652 MB / 465.8 MB, free: 41.88 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007177/0.4589, allocations: 159.7 kB / 466 MB, free: 41.87 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002767/0.4617, allocations: 2.684 MB / 468.6 MB, free: 39.78 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001292/0.463, allocations: 196.7 kB / 468.8 MB, free: 39.76 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.78e-05/0.4631, allocations: 37.34 kB / 468.9 MB, free: 39.76 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.000441/0.4636, allocations: 219.6 kB / 469.1 MB, free: 39.62 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001963/0.4638, allocations: 61 kB / 469.1 MB, free: 39.59 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001769/0.464, allocations: 86.89 kB / 469.2 MB, free: 39.59 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.302e-05/0.464, allocations: 9.625 kB / 469.2 MB, free: 39.59 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.918e-05/0.464, allocations: 3.953 kB / 469.2 MB, free: 39.58 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.497e-06/0.464, allocations: 3.469 kB / 469.2 MB, free: 39.58 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004679/0.4687, allocations: 2.2 MB / 471.4 MB, free: 38.61 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.344e-06/0.4687, allocations: 0 / 471.4 MB, free: 38.61 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007857/0.4695, allocations: 123.8 kB / 471.6 MB, free: 38.59 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001537/0.4711, allocations: 0.7159 MB / 472.3 MB, free: 38.38 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.22e-05/0.4712, allocations: 34.61 kB / 472.3 MB, free: 38.36 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002222/0.4734, allocations: 2.642 MB / 475 MB, free: 36.07 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.59e-06/0.4735, allocations: 3.75 kB / 475 MB, free: 36.07 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003863/0.4773, allocations: 1.854 MB / 476.8 MB, free: 35.12 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004131/0.4778, allocations: 215.3 kB / 477 MB, free: 34.97 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001727/0.4779, allocations: 25.28 kB / 477.1 MB, free: 34.95 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001194/0.4792, allocations: 172.1 kB / 477.2 MB, free: 34.94 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004196/0.4796, allocations: 172.4 kB / 477.4 MB, free: 34.91 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.708e-05/0.4797, allocations: 33.77 kB / 477.4 MB, free: 34.91 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003768/0.4801, allocations: 287 kB / 477.7 MB, free: 34.77 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.4801, allocations: 0 / 477.7 MB, free: 34.77 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001153/0.4812, allocations: 199.7 kB / 477.9 MB, free: 34.75 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.003966/0.4852, allocations: 2.641 MB / 480.5 MB, free: 33.06 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002194/0.4874, allocations: 0.9746 MB / 481.5 MB, free: 32.75 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.91e-06/0.4875, allocations: 0 / 481.5 MB, free: 32.75 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00121/0.4887, allocations: 0.5158 MB / 482 MB, free: 32.6 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009216/0.4896, allocations: 96.58 kB / 482.1 MB, free: 32.56 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01011/0.4997, allocations: 8.158 MB / 490.3 MB, free: 27.02 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004625/0.5003, allocations: 0.9233 MB / 491.2 MB, free: 26.3 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003246/0.5006, allocations: 61.34 kB / 491.3 MB, free: 26.29 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002796/0.5009, allocations: 211.5 kB / 491.5 MB, free: 26.13 MB / 382.1 MB Notification: Performance of SimCode: time 1.152e-06/0.5009, allocations: 0 / 491.5 MB, free: 26.13 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04666/0.5476, allocations: 19.07 MB / 0.4986 GB, free: 21.45 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002125/0.5479, allocations: 197.1 kB / 0.4988 GB, free: 21.21 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.222/2.77, allocations: 0 / 0.4988 GB, free: 21.21 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