Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Rotational.TestFriction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001916/0.001916, allocations: 111.1 kB / 20.44 MB, free: 1.184 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002413/0.002413, allocations: 211.7 kB / 23.73 MB, free: 4.387 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.56/1.56, allocations: 230.6 MB / 257.5 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.235/0.235, allocations: 46.96 MB / 360.9 MB, free: 4.012 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.TestFriction,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Rotational_TestFriction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestFriction,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Rotational_TestFriction",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002841/0.002841, allocations: 71.88 kB / 0.4961 GB, free: 7.703 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3365/0.3394, allocations: 66.04 MB / 0.5606 GB, free: 4.215 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.005457/0.3448, allocations: 3.739 MB / 0.5642 GB, free: 460 kB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002557/0.3474, allocations: 1.43 MB / 0.5656 GB, free: 15.01 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002517/0.3476, allocations: 19.88 kB / 0.5657 GB, free: 14.99 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003775/0.348, allocations: 134.7 kB / 0.5658 GB, free: 14.86 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006073/0.3486, allocations: 285.9 kB / 0.5661 GB, free: 14.58 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006723/0.3493, allocations: 363.4 kB / 0.5664 GB, free: 14.22 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001173/0.3504, allocations: 1.097 MB / 0.5675 GB, free: 13.12 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002602/0.3507, allocations: 132.8 kB / 0.5676 GB, free: 12.98 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006964/0.3514, allocations: 494.5 kB / 0.5681 GB, free: 12.5 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006746/0.3521, allocations: 490 kB / 0.5685 GB, free: 12.02 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001485/0.3522, allocations: 87.94 kB / 0.5686 GB, free: 11.93 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002882/0.3525, allocations: 132 kB / 0.5687 GB, free: 11.8 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002651/0.3528, allocations: 235.3 kB / 0.569 GB, free: 11.57 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003814/0.3532, allocations: 366.4 kB / 0.5693 GB, free: 11.21 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00118/0.3543, allocations: 1.035 MB / 0.5703 GB, free: 10.17 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.3543, allocations: 0 / 0.5703 GB, free: 10.17 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.3543, allocations: 0 / 0.5703 GB, free: 10.17 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.272e-05/0.3544, allocations: 0 / 0.5703 GB, free: 10.17 MB / 414.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.002385/0.3567, allocations: 1.116 MB / 0.5714 GB, free: 9.023 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4e-05/0.3568, allocations: 8.031 kB / 0.5714 GB, free: 9.016 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001511/0.3569, allocations: 102.7 kB / 0.5715 GB, free: 8.906 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005073/0.3574, allocations: 124.3 kB / 0.5716 GB, free: 8.785 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000867/0.3583, allocations: 420 kB / 0.572 GB, free: 8.352 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.561e-05/0.3584, allocations: 53.44 kB / 0.5721 GB, free: 8.297 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001822/0.3586, allocations: 67.94 kB / 0.5722 GB, free: 8.23 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001648/0.3602, allocations: 0.8145 MB / 0.573 GB, free: 7.383 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.154e-05/0.3602, allocations: 4 kB / 0.573 GB, free: 7.379 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.88e-05/0.3603, allocations: 28 kB / 0.573 GB, free: 7.352 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.833e-05/0.3603, allocations: 16 kB / 0.573 GB, free: 7.336 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001751/0.3621, allocations: 0.7322 MB / 0.5737 GB, free: 6.605 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004844/0.3669, allocations: 2.35 MB / 0.576 GB, free: 4.145 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00154/0.3685, allocations: 0.6236 MB / 0.5766 GB, free: 3.488 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007876/0.3693, allocations: 347.3 kB / 0.577 GB, free: 3.137 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.305e-05/0.3693, allocations: 15.94 kB / 0.577 GB, free: 3.121 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.139e-05/0.3694, allocations: 42.56 kB / 0.577 GB, free: 3.07 MB / 414.1 MB Notification: Performance of pre-optimization done (n=79): time 2.775e-06/0.3694, allocations: 0 / 0.577 GB, free: 3.07 MB / 414.1 MB Notification: Performance of matching and sorting (n=83): time 0.00835/0.3777, allocations: 2.955 MB / 0.5799 GB, free: 16 kB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001812/0.3779, allocations: 148.5 kB / 0.58 GB, free: 15.84 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006661/0.3786, allocations: 477.9 kB / 0.5805 GB, free: 15.36 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001096/0.3787, allocations: 57.69 kB / 0.5805 GB, free: 15.3 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002611/0.3789, allocations: 289.1 kB / 0.5808 GB, free: 15.01 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00032/0.3793, allocations: 305.5 kB / 0.5811 GB, free: 14.71 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003035/0.3796, allocations: 166.6 kB / 0.5813 GB, free: 14.54 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002067/0.3798, allocations: 374.8 kB / 0.5816 GB, free: 14.16 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008332/0.3806, allocations: 357.8 kB / 0.582 GB, free: 13.82 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009711/0.3816, allocations: 0.5254 MB / 0.5825 GB, free: 13.23 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001499/0.3831, allocations: 0.6928 MB / 0.5832 GB, free: 12.48 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.3831, allocations: 0 / 0.5832 GB, free: 12.48 MB / 430.1 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.00289/0.386, allocations: 1.197 MB / 0.5843 GB, free: 11.27 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.107e-05/0.386, allocations: 8.031 kB / 0.5843 GB, free: 11.26 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.172e-05/0.386, allocations: 4 kB / 0.5843 GB, free: 11.26 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00143/0.3874, allocations: 0.5811 MB / 0.5849 GB, free: 10.66 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005664/0.388, allocations: 139.8 kB / 0.585 GB, free: 10.53 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0042/0.3922, allocations: 3.747 MB / 0.5887 GB, free: 6.594 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009695/0.3932, allocations: 143.9 kB / 0.5888 GB, free: 6.453 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.48e-05/0.3933, allocations: 39.98 kB / 0.5889 GB, free: 6.414 MB / 430.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.0004069/0.3937, allocations: 212.3 kB / 0.5891 GB, free: 6.199 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002051/0.3939, allocations: 71.58 kB / 0.5891 GB, free: 6.129 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002047/0.3941, allocations: 96.98 kB / 0.5892 GB, free: 6.031 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.148e-05/0.3941, allocations: 15.94 kB / 0.5893 GB, free: 6.016 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.3941, allocations: 0 / 0.5893 GB, free: 6.016 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.191e-05/0.3941, allocations: 11.97 kB / 0.5893 GB, free: 6.004 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004243/0.3983, allocations: 2.009 MB / 0.5912 GB, free: 3.934 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.05e-06/0.3983, allocations: 0 / 0.5912 GB, free: 3.934 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006044/0.399, allocations: 115.9 kB / 0.5913 GB, free: 3.82 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001216/0.4002, allocations: 0.5303 MB / 0.5919 GB, free: 3.277 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.514e-05/0.4003, allocations: 35.89 kB / 0.5919 GB, free: 3.242 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003795/0.404, allocations: 3.531 MB / 0.5953 GB, free: 15.52 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.023e-06/0.404, allocations: 4.031 kB / 0.5953 GB, free: 15.51 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003575/0.4076, allocations: 1.711 MB / 0.597 GB, free: 13.78 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004341/0.4081, allocations: 155.3 kB / 0.5972 GB, free: 13.62 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001563/0.4082, allocations: 32 kB / 0.5972 GB, free: 13.59 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009251/0.4091, allocations: 119.9 kB / 0.5973 GB, free: 13.48 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004722/0.4096, allocations: 203.5 kB / 0.5975 GB, free: 13.28 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.653e-05/0.4097, allocations: 36.05 kB / 0.5975 GB, free: 13.24 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0004358/0.4101, allocations: 326.8 kB / 0.5978 GB, free: 12.93 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4101, allocations: 4 kB / 0.5978 GB, free: 12.92 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0009154/0.411, allocations: 212 kB / 0.598 GB, free: 12.71 MB / 446.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.005298/0.4163, allocations: 2.565 MB / 0.6006 GB, free: 10.26 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002501/0.4188, allocations: 0.9903 MB / 0.6015 GB, free: 9.258 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.4188, allocations: 0 / 0.6015 GB, free: 9.258 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001454/0.4203, allocations: 0.6097 MB / 0.6021 GB, free: 8.637 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001202/0.4215, allocations: 136.8 kB / 0.6022 GB, free: 8.508 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01409/0.4356, allocations: 7.374 MB / 0.6094 GB, free: 0.8945 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003955/0.436, allocations: 338.5 kB / 0.6098 GB, free: 0.5352 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0003613/0.4363, allocations: 77.03 kB / 0.6098 GB, free: 468 kB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003805/0.4367, allocations: 235.3 kB / 0.6101 GB, free: 232 kB / 446.1 MB Notification: Performance of SimCode: time 6.92e-07/0.4367, allocations: 0 / 0.6101 GB, free: 232 kB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06017/0.4969, allocations: 20.99 MB / 0.6306 GB, free: 11.41 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.5/13.99, allocations: 15.14 kB / 0.6306 GB, free: 11.4 MB / 478.1 MB " [Timeout remaining time 646] (rm -f ModelicaTest_4.1.0_ModelicaTest.Rotational.TestFriction.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Rotational.TestFriction.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Rotational.TestFriction.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Rotational.TestFriction.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Rotational.TestFriction_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Rotational_TestFriction_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219124 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Rotational_TestFriction.fmu > ModelicaTest_4.1.0_ModelicaTest.Rotational.TestFriction.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Rotational.TestFriction_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/TestFriction/TestFriction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Rotational.TestFriction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 17.520232337061316]