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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001847/0.001847, allocations: 111.1 kB / 20.44 MB, free: 1.199 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002192/0.002192, allocations: 206.4 kB / 23.73 MB, free: 4.414 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.458/1.458, allocations: 230.5 MB / 257.4 MB, free: 7.746 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2339/0.2339, allocations: 46.95 MB / 360.8 MB, free: 3.91 MB / 286.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002378/0.002378, allocations: 79.88 kB / 0.4961 GB, free: 7.539 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3122/0.3145, allocations: 66.09 MB / 0.5607 GB, free: 3.992 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.005616/0.3202, allocations: 3.737 MB / 0.5643 GB, free: 240 kB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002883/0.323, allocations: 1.442 MB / 0.5657 GB, free: 14.79 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003392/0.3234, allocations: 15.88 kB / 0.5658 GB, free: 14.77 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004293/0.3238, allocations: 134.7 kB / 0.5659 GB, free: 14.64 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006618/0.3245, allocations: 285.9 kB / 0.5662 GB, free: 14.36 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007684/0.3252, allocations: 363.4 kB / 0.5665 GB, free: 14 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001254/0.3265, allocations: 1.097 MB / 0.5676 GB, free: 12.9 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002708/0.3268, allocations: 128.8 kB / 0.5677 GB, free: 12.76 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007438/0.3275, allocations: 498.5 kB / 0.5682 GB, free: 12.27 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006707/0.3282, allocations: 478.1 kB / 0.5686 GB, free: 11.8 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001502/0.3283, allocations: 84 kB / 0.5687 GB, free: 11.72 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003102/0.3286, allocations: 148 kB / 0.5688 GB, free: 11.58 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002604/0.3289, allocations: 231.2 kB / 0.5691 GB, free: 11.35 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004102/0.3293, allocations: 370.3 kB / 0.5694 GB, free: 10.99 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001213/0.3305, allocations: 1.035 MB / 0.5704 GB, free: 9.949 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.3305, allocations: 0 / 0.5704 GB, free: 9.949 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.3305, allocations: 0 / 0.5704 GB, free: 9.949 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.661e-05/0.3305, allocations: 0 / 0.5704 GB, free: 9.949 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.002404/0.3329, allocations: 1.104 MB / 0.5715 GB, free: 8.812 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.254e-05/0.333, allocations: 12.03 kB / 0.5715 GB, free: 8.801 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001451/0.3331, allocations: 106.7 kB / 0.5716 GB, free: 8.688 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005184/0.3336, allocations: 124.3 kB / 0.5717 GB, free: 8.566 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008623/0.3345, allocations: 416 kB / 0.5721 GB, free: 8.137 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.416e-05/0.3346, allocations: 61.44 kB / 0.5722 GB, free: 8.074 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001364/0.3347, allocations: 67.94 kB / 0.5723 GB, free: 8.008 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001615/0.3363, allocations: 0.8145 MB / 0.5731 GB, free: 7.16 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.645e-05/0.3364, allocations: 8 kB / 0.5731 GB, free: 7.152 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.197e-05/0.3364, allocations: 20 kB / 0.5731 GB, free: 7.133 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.574e-05/0.3365, allocations: 16 kB / 0.5731 GB, free: 7.117 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001798/0.3383, allocations: 0.7322 MB / 0.5738 GB, free: 6.387 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005/0.3433, allocations: 2.346 MB / 0.5761 GB, free: 3.93 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001579/0.3448, allocations: 0.6263 MB / 0.5767 GB, free: 3.27 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008104/0.3456, allocations: 347.3 kB / 0.577 GB, free: 2.918 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.388e-05/0.3457, allocations: 11.94 kB / 0.5771 GB, free: 2.906 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.445e-05/0.3458, allocations: 46.56 kB / 0.5771 GB, free: 2.852 MB / 414.1 MB Notification: Performance of pre-optimization done (n=79): time 2.996e-06/0.3458, allocations: 0 / 0.5771 GB, free: 2.852 MB / 414.1 MB Notification: Performance of matching and sorting (n=83): time 0.008492/0.3543, allocations: 2.937 MB / 0.58 GB, free: 15.8 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001052/0.3544, allocations: 144.5 kB / 0.5801 GB, free: 15.63 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006495/0.355, allocations: 477.9 kB / 0.5806 GB, free: 15.15 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 9.857e-05/0.3551, allocations: 53.69 kB / 0.5806 GB, free: 15.09 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002455/0.3554, allocations: 297 kB / 0.5809 GB, free: 14.8 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003025/0.3557, allocations: 305.5 kB / 0.5812 GB, free: 14.5 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002909/0.356, allocations: 166.6 kB / 0.5813 GB, free: 14.33 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002158/0.3562, allocations: 378.8 kB / 0.5817 GB, free: 13.95 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000887/0.3571, allocations: 361.8 kB / 0.5821 GB, free: 13.6 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009831/0.358, allocations: 0.5176 MB / 0.5826 GB, free: 13.02 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00148/0.3595, allocations: 0.7058 MB / 0.5833 GB, free: 12.26 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.829e-06/0.3595, allocations: 0 / 0.5833 GB, free: 12.26 MB / 430.1 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.002965/0.3625, allocations: 1.183 MB / 0.5844 GB, free: 11.05 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.588e-05/0.3625, allocations: 4 kB / 0.5844 GB, free: 11.05 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.404e-05/0.3625, allocations: 12.34 kB / 0.5844 GB, free: 11.04 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001408/0.3639, allocations: 0.5772 MB / 0.585 GB, free: 10.45 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005919/0.3645, allocations: 151.7 kB / 0.5851 GB, free: 10.3 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004634/0.3692, allocations: 3.745 MB / 0.5888 GB, free: 6.371 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001077/0.3702, allocations: 143.7 kB / 0.5889 GB, free: 6.23 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.85e-05/0.3703, allocations: 36.05 kB / 0.589 GB, free: 6.195 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.0004163/0.3707, allocations: 220.3 kB / 0.5892 GB, free: 5.973 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002319/0.371, allocations: 67.58 kB / 0.5892 GB, free: 5.906 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002207/0.3712, allocations: 96.92 kB / 0.5893 GB, free: 5.809 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.066e-05/0.3712, allocations: 11.94 kB / 0.5893 GB, free: 5.797 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.644e-06/0.3712, allocations: 0 / 0.5893 GB, free: 5.797 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.115e-05/0.3712, allocations: 7.984 kB / 0.5893 GB, free: 5.789 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004433/0.3757, allocations: 1.99 MB / 0.5913 GB, free: 3.734 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.746e-06/0.3757, allocations: 8 kB / 0.5913 GB, free: 3.727 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000623/0.3763, allocations: 115.9 kB / 0.5914 GB, free: 3.613 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001322/0.3776, allocations: 0.5459 MB / 0.5919 GB, free: 3.055 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001026/0.3777, allocations: 35.89 kB / 0.592 GB, free: 3.02 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004198/0.3819, allocations: 3.539 MB / 0.5954 GB, free: 15.29 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.3819, allocations: 0 / 0.5954 GB, free: 15.29 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003673/0.3856, allocations: 1.718 MB / 0.5971 GB, free: 13.55 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004483/0.386, allocations: 151.3 kB / 0.5973 GB, free: 13.4 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001612/0.3862, allocations: 28.11 kB / 0.5973 GB, free: 13.37 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008861/0.3871, allocations: 127.8 kB / 0.5974 GB, free: 13.25 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004628/0.3875, allocations: 195.6 kB / 0.5976 GB, free: 13.05 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.434e-05/0.3876, allocations: 35.95 kB / 0.5976 GB, free: 13.02 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0004457/0.3881, allocations: 326.9 kB / 0.5979 GB, free: 12.7 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3881, allocations: 96 / 0.5979 GB, free: 12.7 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.000908/0.389, allocations: 215.9 kB / 0.5981 GB, free: 12.49 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.005217/0.3942, allocations: 2.563 MB / 0.6006 GB, free: 10.01 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002732/0.3969, allocations: 0.9864 MB / 0.6016 GB, free: 9.016 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.734e-06/0.3969, allocations: 4 kB / 0.6016 GB, free: 9.012 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001594/0.3985, allocations: 0.611 MB / 0.6022 GB, free: 8.391 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001295/0.3998, allocations: 140.2 kB / 0.6023 GB, free: 8.254 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01543/0.4152, allocations: 7.368 MB / 0.6095 GB, free: 0.6445 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004915/0.4157, allocations: 342.5 kB / 0.6099 GB, free: 288 kB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0004364/0.4162, allocations: 77.03 kB / 0.6099 GB, free: 208 kB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005066/0.4167, allocations: 235.4 kB / 0.6102 GB, free: 15.97 MB / 462.1 MB Notification: Performance of SimCode: time 8.62e-07/0.4167, allocations: 0 / 0.6102 GB, free: 15.97 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06269/0.4794, allocations: 20.99 MB / 0.6307 GB, free: 11.12 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.33/13.81, allocations: 0 / 0.6307 GB, free: 11.12 MB / 478.1 MB " [Timeout remaining time 646] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Rotational_TestFriction_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219124 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Rotational_TestFriction.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_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_trunk_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.091573702171445]