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.001799/0.001799, allocations: 109.1 kB / 21.22 MB, free: 0.7539 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.002183/0.002183, allocations: 220.5 kB / 24.53 MB, free: 4.008 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.532/1.532, allocations: 230.5 MB / 258.2 MB, free: 8.008 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.2342/0.2342, allocations: 46.93 MB / 361.6 MB, free: 4.195 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestFriction,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_TestFriction",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002413/0.002413, allocations: 79.88 kB / 0.497 GB, free: 7.781 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.377/0.3794, allocations: 66.08 MB / 0.5615 GB, free: 4.281 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.005782/0.3852, allocations: 4.136 MB / 0.5655 GB, free: 124 kB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002722/0.3879, allocations: 1.496 MB / 0.567 GB, free: 14.62 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002588/0.3882, allocations: 23.81 kB / 0.567 GB, free: 14.59 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003851/0.3886, allocations: 134.8 kB / 0.5671 GB, free: 14.46 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005561/0.3891, allocations: 282 kB / 0.5674 GB, free: 14.18 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006556/0.3898, allocations: 355.4 kB / 0.5677 GB, free: 13.84 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.00114/0.3909, allocations: 1.089 MB / 0.5688 GB, free: 12.74 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002649/0.3912, allocations: 144.8 kB / 0.5689 GB, free: 12.59 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006886/0.3919, allocations: 498.5 kB / 0.5694 GB, free: 12.1 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006976/0.3926, allocations: 0.5177 MB / 0.5699 GB, free: 11.58 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001367/0.3927, allocations: 80 kB / 0.57 GB, free: 11.5 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002687/0.393, allocations: 140 kB / 0.5701 GB, free: 11.37 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002533/0.3932, allocations: 243.2 kB / 0.5704 GB, free: 11.13 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004279/0.3937, allocations: 433.8 kB / 0.5708 GB, free: 10.7 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001212/0.3949, allocations: 1.027 MB / 0.5718 GB, free: 9.672 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.3949, allocations: 0 / 0.5718 GB, free: 9.672 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.3949, allocations: 0 / 0.5718 GB, free: 9.672 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.284e-05/0.3949, allocations: 0 / 0.5718 GB, free: 9.672 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.002411/0.3973, allocations: 1.104 MB / 0.5729 GB, free: 8.535 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.692e-05/0.3973, allocations: 15.97 kB / 0.5729 GB, free: 8.52 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.705e-05/0.3974, allocations: 17.5 kB / 0.5729 GB, free: 8.5 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001408/0.3975, allocations: 106.7 kB / 0.573 GB, free: 8.387 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005049/0.398, allocations: 124.3 kB / 0.5731 GB, free: 8.266 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007704/0.3988, allocations: 420 kB / 0.5735 GB, free: 7.832 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.716e-05/0.3988, allocations: 53.25 kB / 0.5736 GB, free: 7.781 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001346/0.399, allocations: 71.94 kB / 0.5736 GB, free: 7.711 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001615/0.4006, allocations: 0.8145 MB / 0.5744 GB, free: 6.863 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.846e-05/0.4006, allocations: 4 kB / 0.5744 GB, free: 6.859 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.026e-05/0.4007, allocations: 24 kB / 0.5745 GB, free: 6.836 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.756e-05/0.4007, allocations: 19.94 kB / 0.5745 GB, free: 6.816 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001726/0.4024, allocations: 0.7401 MB / 0.5752 GB, free: 6.078 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004611/0.4071, allocations: 2.514 MB / 0.5777 GB, free: 3.453 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001518/0.4086, allocations: 0.6276 MB / 0.5783 GB, free: 2.793 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007621/0.4093, allocations: 347.3 kB / 0.5786 GB, free: 2.441 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.685e-05/0.4094, allocations: 15.98 kB / 0.5786 GB, free: 2.426 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.789e-05/0.4094, allocations: 42.55 kB / 0.5787 GB, free: 2.375 MB / 414.1 MB Notification: Performance of pre-optimization done (n=79): time 2.374e-06/0.4094, allocations: 8 kB / 0.5787 GB, free: 2.367 MB / 414.1 MB Notification: Performance of matching and sorting (n=83): time 0.00823/0.4177, allocations: 2.947 MB / 0.5815 GB, free: 15.31 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.481e-05/0.4178, allocations: 140.5 kB / 0.5817 GB, free: 15.14 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000641/0.4184, allocations: 485.9 kB / 0.5821 GB, free: 14.66 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001036/0.4185, allocations: 49.7 kB / 0.5822 GB, free: 14.61 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002433/0.4187, allocations: 285.1 kB / 0.5825 GB, free: 14.32 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003114/0.4191, allocations: 297.6 kB / 0.5827 GB, free: 14.03 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003221/0.4194, allocations: 178.5 kB / 0.5829 GB, free: 13.84 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002031/0.4196, allocations: 370.8 kB / 0.5833 GB, free: 13.47 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008542/0.4204, allocations: 365.8 kB / 0.5836 GB, free: 13.12 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009901/0.4214, allocations: 0.5176 MB / 0.5841 GB, free: 12.54 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001445/0.4229, allocations: 0.6977 MB / 0.5848 GB, free: 11.79 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.4229, allocations: 4 kB / 0.5848 GB, free: 11.78 MB / 430.1 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.002917/0.4258, allocations: 1.187 MB / 0.586 GB, free: 10.57 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.045e-05/0.4258, allocations: 7.938 kB / 0.586 GB, free: 10.57 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.653e-05/0.4258, allocations: 11.94 kB / 0.586 GB, free: 10.55 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001374/0.4272, allocations: 0.562 MB / 0.5865 GB, free: 9.98 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006377/0.4278, allocations: 155.7 kB / 0.5867 GB, free: 9.828 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0045/0.4323, allocations: 3.749 MB / 0.5903 GB, free: 5.891 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001028/0.4334, allocations: 143.8 kB / 0.5905 GB, free: 5.75 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.661e-05/0.4335, allocations: 39.98 kB / 0.5905 GB, free: 5.711 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.0004012/0.4339, allocations: 220.2 kB / 0.5907 GB, free: 5.488 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002245/0.4341, allocations: 71.58 kB / 0.5908 GB, free: 5.418 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000206/0.4343, allocations: 92.86 kB / 0.5909 GB, free: 5.324 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.015e-05/0.4343, allocations: 16 kB / 0.5909 GB, free: 5.309 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/0.4343, allocations: 0 / 0.5909 GB, free: 5.309 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.027e-06/0.4343, allocations: 3.984 kB / 0.5909 GB, free: 5.305 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004376/0.4387, allocations: 2.121 MB / 0.593 GB, free: 3.121 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.749e-06/0.4387, allocations: 0 / 0.593 GB, free: 3.121 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005889/0.4393, allocations: 115.9 kB / 0.5931 GB, free: 3.008 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001257/0.4405, allocations: 0.546 MB / 0.5936 GB, free: 2.449 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.767e-05/0.4406, allocations: 31.95 kB / 0.5937 GB, free: 2.418 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003862/0.4445, allocations: 3.543 MB / 0.5971 GB, free: 14.68 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.4445, allocations: 3.938 kB / 0.5971 GB, free: 14.68 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003557/0.448, allocations: 1.719 MB / 0.5988 GB, free: 12.94 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000399/0.4484, allocations: 147.4 kB / 0.5989 GB, free: 12.79 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001491/0.4486, allocations: 32 kB / 0.599 GB, free: 12.76 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000912/0.4495, allocations: 127.8 kB / 0.5991 GB, free: 12.64 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000449/0.45, allocations: 187.6 kB / 0.5993 GB, free: 12.45 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.791e-05/0.45, allocations: 39.95 kB / 0.5993 GB, free: 12.41 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0004015/0.4504, allocations: 323 kB / 0.5996 GB, free: 12.1 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4504, allocations: 4.047 kB / 0.5996 GB, free: 12.1 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.000894/0.4513, allocations: 219.9 kB / 0.5998 GB, free: 11.88 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.005077/0.4564, allocations: 2.545 MB / 0.6023 GB, free: 9.406 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002437/0.4588, allocations: 0.9982 MB / 0.6033 GB, free: 8.398 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.4588, allocations: 0 / 0.6033 GB, free: 8.398 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001469/0.4603, allocations: 0.6115 MB / 0.6039 GB, free: 7.773 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001135/0.4615, allocations: 146.7 kB / 0.604 GB, free: 7.641 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01411/0.4756, allocations: 7.356 MB / 0.6112 GB, free: 40 kB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006406/0.4762, allocations: 0.9304 MB / 0.6121 GB, free: 15.07 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0003293/0.4765, allocations: 77.02 kB / 0.6122 GB, free: 15 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003727/0.4769, allocations: 235.3 kB / 0.6124 GB, free: 14.77 MB / 462.1 MB Notification: Performance of SimCode: time 8.22e-07/0.4769, allocations: 0 / 0.6124 GB, free: 14.77 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05874/0.5356, allocations: 23.12 MB / 0.635 GB, free: 7.762 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.04/14.58, allocations: 3.938 kB / 0.635 GB, free: 7.758 MB / 478.1 MB " [Timeout remaining time 645] (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: 18.233750720974058]