Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.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.00133/0.00133, allocations: 119.1 kB / 20.45 MB, free: 1.176 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.001637/0.001637, allocations: 206.4 kB / 23.72 MB, free: 4.391 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.465/1.465, allocations: 230.5 MB / 257.4 MB, free: 7.754 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.2272/0.2272, allocations: 46.94 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.ForUsersGuide.SupportTorque1,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002545/0.002545, allocations: 79.86 kB / 0.4961 GB, free: 7.535 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.316/0.3186, allocations: 66.09 MB / 0.5607 GB, free: 3.988 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.004299/0.3229, allocations: 2.256 MB / 0.5629 GB, free: 1.723 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001778/0.3246, allocations: 0.8645 MB / 0.5637 GB, free: 0.8516 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001941/0.3248, allocations: 7.938 kB / 0.5637 GB, free: 0.8438 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002795/0.3251, allocations: 47.58 kB / 0.5638 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002751/0.3254, allocations: 91.33 kB / 0.5639 GB, free: 0.707 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000451/0.3258, allocations: 147.6 kB / 0.564 GB, free: 0.5625 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005053/0.3263, allocations: 347.3 kB / 0.5643 GB, free: 228 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001724/0.3265, allocations: 62.94 kB / 0.5644 GB, free: 160 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002836/0.3268, allocations: 159.5 kB / 0.5646 GB, free: 0 / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002554/0.327, allocations: 143.4 kB / 0.5647 GB, free: 15.86 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.399e-05/0.3271, allocations: 32 kB / 0.5647 GB, free: 15.83 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000198/0.3273, allocations: 91.91 kB / 0.5648 GB, free: 15.74 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001146/0.3274, allocations: 71.81 kB / 0.5649 GB, free: 15.67 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001353/0.3276, allocations: 115.5 kB / 0.565 GB, free: 15.55 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005001/0.3281, allocations: 390.5 kB / 0.5654 GB, free: 15.17 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.3281, allocations: 0 / 0.5654 GB, free: 15.17 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3281, allocations: 0 / 0.5654 GB, free: 15.17 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.703e-06/0.3281, allocations: 0 / 0.5654 GB, free: 15.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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.001009/0.3291, allocations: 0.5168 MB / 0.5659 GB, free: 14.62 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.318e-05/0.3291, allocations: 12.02 kB / 0.5659 GB, free: 14.61 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.191e-05/0.3292, allocations: 54.73 kB / 0.5659 GB, free: 14.55 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000178/0.3294, allocations: 40.78 kB / 0.566 GB, free: 14.51 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004128/0.3298, allocations: 194.8 kB / 0.5662 GB, free: 14.3 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.333e-05/0.3298, allocations: 16.88 kB / 0.5662 GB, free: 14.28 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.261e-05/0.3299, allocations: 24.38 kB / 0.5662 GB, free: 14.26 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005658/0.3304, allocations: 276.1 kB / 0.5665 GB, free: 13.98 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.014e-05/0.3304, allocations: 7.891 kB / 0.5665 GB, free: 13.97 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.253e-05/0.3305, allocations: 12 kB / 0.5665 GB, free: 13.96 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.088e-05/0.3305, allocations: 11.88 kB / 0.5665 GB, free: 13.95 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005255/0.331, allocations: 225.9 kB / 0.5667 GB, free: 13.73 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0014/0.3324, allocations: 0.646 MB / 0.5673 GB, free: 13.04 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000559/0.333, allocations: 222.5 kB / 0.5675 GB, free: 12.81 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002569/0.3332, allocations: 121.2 kB / 0.5677 GB, free: 12.69 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.761e-05/0.3333, allocations: 4 kB / 0.5677 GB, free: 12.69 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.379e-05/0.3333, allocations: 42.42 kB / 0.5677 GB, free: 12.64 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 1.833e-06/0.3333, allocations: 0 / 0.5677 GB, free: 12.64 MB / 414.1 MB Notification: Performance of matching and sorting (n=34): time 0.003104/0.3364, allocations: 1.196 MB / 0.5689 GB, free: 11.38 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.564e-05/0.3364, allocations: 55.41 kB / 0.5689 GB, free: 11.32 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002407/0.3367, allocations: 207.9 kB / 0.5691 GB, free: 11.1 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.768e-05/0.3367, allocations: 33.69 kB / 0.5692 GB, free: 11.06 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001109/0.3368, allocations: 140.8 kB / 0.5693 GB, free: 10.91 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001128/0.3369, allocations: 119 kB / 0.5694 GB, free: 10.8 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001286/0.3371, allocations: 73.64 kB / 0.5695 GB, free: 10.72 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001545/0.3372, allocations: 334.8 kB / 0.5698 GB, free: 10.38 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002782/0.3375, allocations: 123.9 kB / 0.5699 GB, free: 10.26 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002947/0.3378, allocations: 159.4 kB / 0.5701 GB, free: 10.09 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004597/0.3383, allocations: 243.9 kB / 0.5703 GB, free: 9.844 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.3383, allocations: 0 / 0.5703 GB, free: 9.844 MB / 414.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0008943/0.3392, allocations: 418 kB / 0.5707 GB, free: 9.426 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.091e-05/0.3392, allocations: 19.94 kB / 0.5707 GB, free: 9.406 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.3392, allocations: 0 / 0.5707 GB, free: 9.406 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00049/0.3397, allocations: 188.7 kB / 0.5709 GB, free: 9.219 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002307/0.3399, allocations: 55.91 kB / 0.5709 GB, free: 9.164 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008308/0.3407, allocations: 0.7281 MB / 0.5717 GB, free: 8.41 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000265/0.341, allocations: 40.05 kB / 0.5717 GB, free: 8.371 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.258e-05/0.341, allocations: 12 kB / 0.5717 GB, free: 8.359 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 8 (bearingFriction1.free,bearingFriction1.mode,$PRE.bearingFriction1.mode,bearingFriction1.locked,bearingFriction1.startBackward,$PRE.bearingFriction1.startBackward,bearingFriction1.startForward,$PRE.bearingFriction1.startForward) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,13)} Notification: Performance of prepare postOptimizeDAE: time 0.0001734/0.3412, allocations: 151 kB / 0.5719 GB, free: 8.203 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.057e-05/0.3413, allocations: 23.86 kB / 0.5719 GB, free: 8.18 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.294e-05/0.3414, allocations: 38.64 kB / 0.5719 GB, free: 8.145 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.159e-06/0.3414, allocations: 4 kB / 0.5719 GB, free: 8.141 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.3414, allocations: 0 / 0.5719 GB, free: 8.141 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.157e-06/0.3414, allocations: 0 / 0.5719 GB, free: 8.141 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001725/0.3431, allocations: 0.8728 MB / 0.5728 GB, free: 7.207 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.3431, allocations: 0 / 0.5728 GB, free: 7.207 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002271/0.3434, allocations: 47.91 kB / 0.5728 GB, free: 7.16 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004043/0.3438, allocations: 176.7 kB / 0.573 GB, free: 6.984 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.369e-05/0.3438, allocations: 19.98 kB / 0.573 GB, free: 6.965 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007367/0.3445, allocations: 0.6889 MB / 0.5737 GB, free: 6.25 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.3445, allocations: 0 / 0.5737 GB, free: 6.25 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001211/0.3457, allocations: 0.6075 MB / 0.5743 GB, free: 5.621 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001321/0.3459, allocations: 47.84 kB / 0.5743 GB, free: 5.574 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.434e-05/0.3459, allocations: 12 kB / 0.5743 GB, free: 5.562 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002662/0.3462, allocations: 40.08 kB / 0.5744 GB, free: 5.523 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001257/0.3463, allocations: 51.84 kB / 0.5744 GB, free: 5.473 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.582e-05/0.3463, allocations: 11.98 kB / 0.5744 GB, free: 5.461 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001729/0.3465, allocations: 160.1 kB / 0.5746 GB, free: 5.305 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3465, allocations: 0 / 0.5746 GB, free: 5.305 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003647/0.3469, allocations: 75.88 kB / 0.5746 GB, free: 5.23 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (inertia3.phi,inertia3.w) * Number of discrete variables: 4 (bearingFriction1.startForward,bearingFriction1.startBackward,bearingFriction1.locked,bearingFriction1.mode) * Number of discrete states: 3 (bearingFriction1.mode,bearingFriction1.startBackward,bearingFriction1.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00284/0.3497, allocations: 1.4 MB / 0.576 GB, free: 3.926 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0007877/0.3505, allocations: 292.1 kB / 0.5763 GB, free: 3.641 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/0.3505, allocations: 0 / 0.5763 GB, free: 3.641 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00036/0.3509, allocations: 155.7 kB / 0.5764 GB, free: 3.488 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004593/0.3513, allocations: 53.45 kB / 0.5765 GB, free: 3.438 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005231/0.3566, allocations: 3.075 MB / 0.5795 GB, free: 260 kB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001572/0.3567, allocations: 150.7 kB / 0.5796 GB, free: 84 kB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001104/0.3568, allocations: 26.23 kB / 0.5797 GB, free: 60 kB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001461/0.357, allocations: 75.45 kB / 0.5797 GB, free: 15.98 MB / 430.1 MB Notification: Performance of SimCode: time 7.51e-07/0.357, allocations: 0 / 0.5797 GB, free: 15.98 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03797/0.395, allocations: 7.744 MB / 0.5873 GB, free: 8.297 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.65/13.04, allocations: 11.78 kB / 0.5873 GB, free: 8.285 MB / 430.1 MB " [Timeout remaining time 647] (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219912 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/ForUsersGuide/SupportTorque1/SupportTorque1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.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: 16.097751815337688]