Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.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.TestFriction,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_TestFriction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestFriction,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_TestFriction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001552/0.001552, allocations: 118.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001983/0.001983, allocations: 201.2 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.412/1.412, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2148/0.2148, allocations: 46.1 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001544/0.001544, allocations: 75.88 kB / 480.8 MB, free: 4.594 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3199/0.3215, allocations: 62.44 MB / 0.5305 GB, free: 13.42 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.005456/0.327, allocations: 4.113 MB / 0.5345 GB, free: 10.17 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00296/0.33, allocations: 1.483 MB / 0.536 GB, free: 8.953 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003816/0.3304, allocations: 13.88 kB / 0.536 GB, free: 8.949 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004269/0.3308, allocations: 138.7 kB / 0.5361 GB, free: 8.832 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006589/0.3315, allocations: 287.1 kB / 0.5364 GB, free: 8.605 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007401/0.3323, allocations: 343.5 kB / 0.5367 GB, free: 8.309 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001217/0.3335, allocations: 1.101 MB / 0.5378 GB, free: 7.648 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003042/0.3338, allocations: 184.3 kB / 0.538 GB, free: 7.543 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000717/0.3345, allocations: 483.2 kB / 0.5384 GB, free: 7.266 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000657/0.3352, allocations: 0.5071 MB / 0.5389 GB, free: 6.926 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001787/0.3354, allocations: 82.12 kB / 0.539 GB, free: 6.926 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003303/0.3357, allocations: 137.8 kB / 0.5391 GB, free: 6.906 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002672/0.336, allocations: 242.7 kB / 0.5394 GB, free: 6.707 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000441/0.3365, allocations: 422.8 kB / 0.5398 GB, free: 6.406 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001242/0.3377, allocations: 1.036 MB / 0.5408 GB, free: 5.637 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.3377, allocations: 0 / 0.5408 GB, free: 5.637 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.3377, allocations: 0 / 0.5408 GB, free: 5.637 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.022e-05/0.3378, allocations: 0 / 0.5408 GB, free: 5.637 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.002344/0.3401, allocations: 1.174 MB / 0.5419 GB, free: 4.715 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.135e-05/0.3402, allocations: 12.75 kB / 0.5419 GB, free: 4.711 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000138/0.3403, allocations: 107 kB / 0.542 GB, free: 4.617 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000502/0.3408, allocations: 124.5 kB / 0.5422 GB, free: 4.559 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000806/0.3416, allocations: 481.8 kB / 0.5426 GB, free: 4.133 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.202e-05/0.3417, allocations: 59.67 kB / 0.5427 GB, free: 4.098 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001296/0.3418, allocations: 73.64 kB / 0.5427 GB, free: 4.066 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0015/0.3433, allocations: 0.8071 MB / 0.5435 GB, free: 3.535 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.148e-05/0.3434, allocations: 6.188 kB / 0.5435 GB, free: 3.531 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.688e-05/0.3435, allocations: 38.34 kB / 0.5436 GB, free: 3.5 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.562e-05/0.3435, allocations: 19.06 kB / 0.5436 GB, free: 3.496 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001666/0.3452, allocations: 0.7306 MB / 0.5443 GB, free: 3.148 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004217/0.3494, allocations: 2.585 MB / 0.5468 GB, free: 0.7812 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001402/0.3508, allocations: 0.669 MB / 0.5475 GB, free: 80 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00073/0.3516, allocations: 375.2 kB / 0.5478 GB, free: 15.7 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.885e-05/0.3516, allocations: 8 kB / 0.5478 GB, free: 15.69 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.274e-05/0.3517, allocations: 50.48 kB / 0.5479 GB, free: 15.63 MB / 414.1 MB Notification: Performance of pre-optimization done (n=79): time 2.144e-06/0.3517, allocations: 3.938 kB / 0.5479 GB, free: 15.63 MB / 414.1 MB Notification: Performance of matching and sorting (n=83): time 0.007941/0.3596, allocations: 3.561 MB / 0.5514 GB, free: 11.81 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.702e-05/0.3598, allocations: 136.5 kB / 0.5515 GB, free: 11.65 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005976/0.3604, allocations: 482 kB / 0.552 GB, free: 11.17 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 9.369e-05/0.3605, allocations: 53.7 kB / 0.552 GB, free: 11.11 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002143/0.3607, allocations: 285.1 kB / 0.5523 GB, free: 10.82 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002813/0.361, allocations: 301.6 kB / 0.5526 GB, free: 10.53 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003828/0.3614, allocations: 174.5 kB / 0.5527 GB, free: 10.35 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002422/0.3616, allocations: 370.8 kB / 0.5531 GB, free: 9.98 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009297/0.3626, allocations: 369.8 kB / 0.5534 GB, free: 9.617 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001032/0.3636, allocations: 0.5177 MB / 0.554 GB, free: 9.043 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001527/0.3652, allocations: 0.6852 MB / 0.5546 GB, free: 8.305 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.303e-06/0.3652, allocations: 0 / 0.5546 GB, free: 8.305 MB / 414.1 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.003054/0.3682, allocations: 1.219 MB / 0.5558 GB, free: 7.066 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.692e-05/0.3683, allocations: 10.19 kB / 0.5558 GB, free: 7.059 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.415e-05/0.3683, allocations: 4 kB / 0.5558 GB, free: 7.055 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001417/0.3697, allocations: 0.5889 MB / 0.5564 GB, free: 6.453 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005315/0.3703, allocations: 139.8 kB / 0.5565 GB, free: 6.316 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004088/0.3744, allocations: 3.85 MB / 0.5603 GB, free: 2.246 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001025/0.3754, allocations: 147.8 kB / 0.5604 GB, free: 2.102 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001043/0.3755, allocations: 39.98 kB / 0.5605 GB, free: 2.062 MB / 414.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 (brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,clutch.mode,$PRE.clutch.mode,clutch.locked,clutch.startBackward,$PRE.clutch.startBackward,clutch.startForward,$PRE.clutch.startForward,clutch.free,oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward,bearingFriction.free,bearingFriction.mode,$PRE.bearingFriction.mode,bearingFriction.locked,bearingFriction.startBackward,$PRE.bearingFriction.startBackward,bearingFriction.startForward,$PRE.bearingFriction.startForward) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (88): * Single equations (assignments): 84 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,8), (1,10), (1,6), (1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0004336/0.376, allocations: 224.2 kB / 0.5607 GB, free: 1.832 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002803/0.3763, allocations: 79.52 kB / 0.5608 GB, free: 1.754 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002331/0.3765, allocations: 84.84 kB / 0.5608 GB, free: 1.672 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.123e-05/0.3765, allocations: 15.94 kB / 0.5609 GB, free: 1.656 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.677e-06/0.3765, allocations: 0 / 0.5609 GB, free: 1.656 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.806e-06/0.3766, allocations: 3.984 kB / 0.5609 GB, free: 1.652 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004417/0.381, allocations: 2.158 MB / 0.563 GB, free: 15.43 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.542e-06/0.381, allocations: 7.938 kB / 0.563 GB, free: 15.42 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005934/0.3816, allocations: 119.9 kB / 0.5631 GB, free: 15.3 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00124/0.3829, allocations: 0.5342 MB / 0.5636 GB, free: 14.75 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.465e-05/0.383, allocations: 31.91 kB / 0.5636 GB, free: 14.72 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003803/0.3868, allocations: 3.647 MB / 0.5672 GB, free: 10.86 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.977e-06/0.3868, allocations: 8 kB / 0.5672 GB, free: 10.86 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003571/0.3904, allocations: 1.735 MB / 0.5689 GB, free: 9.09 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004125/0.3908, allocations: 236.4 kB / 0.5691 GB, free: 8.84 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001753/0.391, allocations: 31.98 kB / 0.5692 GB, free: 8.809 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009275/0.3919, allocations: 123.8 kB / 0.5693 GB, free: 8.688 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004715/0.3924, allocations: 187.7 kB / 0.5695 GB, free: 8.504 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.34e-05/0.3925, allocations: 31.97 kB / 0.5695 GB, free: 8.473 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004427/0.393, allocations: 326.9 kB / 0.5698 GB, free: 8.156 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.393, allocations: 0 / 0.5698 GB, free: 8.156 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001014/0.394, allocations: 208 kB / 0.57 GB, free: 7.953 MB / 430.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 (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,6), (1,10), (1,7), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004585/0.3986, allocations: 2.561 MB / 0.5725 GB, free: 5.465 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002496/0.4011, allocations: 1.044 MB / 0.5735 GB, free: 4.406 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/0.4012, allocations: 0 / 0.5735 GB, free: 4.406 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001573/0.4027, allocations: 0.6321 MB / 0.5741 GB, free: 3.762 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001329/0.4041, allocations: 144.2 kB / 0.5743 GB, free: 3.625 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01464/0.4187, allocations: 7.397 MB / 0.5815 GB, free: 11.99 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005936/0.4194, allocations: 0.9341 MB / 0.5824 GB, free: 11.03 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0003649/0.4198, allocations: 73.05 kB / 0.5825 GB, free: 10.95 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003751/0.4201, allocations: 243.3 kB / 0.5827 GB, free: 10.71 MB / 446.1 MB Notification: Performance of SimCode: time 5.81e-07/0.4202, allocations: 3.938 kB / 0.5827 GB, free: 10.71 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05596/0.4761, allocations: 22.02 MB / 0.6042 GB, free: 4.883 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.7/13.17, allocations: 8.062 kB / 0.6042 GB, free: 4.875 MB / 462.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 ModelicaTest_trunk_ModelicaTest_Rotational_TestFriction.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestFriction/TestFriction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches